Skip to content

event onRenderFocus (client-side)

This event can be canceled

Note

This event is disabled by default. To enable it, use enableEvent_RenderFocus function.

This event is triggered every game frame, but only when user is focusing other player, npc or vob.

Parameters

int type, int id, int x, int y, string name
  • int type: the type of currently focused vob. For more information see Vob types.
  • int id: the id of currently focused vob. If focused target is not player or npc this value is -1.
  • int x: screen virtual x position.
  • int y: screen virtual y position.
  • string name: focused target displayed name.