Invoker

Functions

call

Invoke a native.

---@param hash integer
---@param args? ...
function invoker.call(hash, args?): native_invoke

Types

native_invoke

TypeName
integerint
integerint64
numberfloat
boolbool
stringstr
memory_addressaddress
scr_vec3scr_vec3

Example

util.create_thread(function()
  local ped = invoker.call(0xD80958FC74E988A6).int -- PLAYER_PED_ID
  local coords = invoker.call(0x3FEF770D40960D5A, ped, false).scr_vec3 -- GET_ENTITY_COORDS
  invoker.call(0xF2A1B2771A01DBD4, coords.x, coords.y, coords.z, 0, 255.0, 0, 1000.0, 1.0) -- DRAW_LIGHT_WITH_RANGE
end)