spawnAsync

-- ARGUMENTS
-- modelOrHash: string OR number
-- callback:    function (entity: number)
-- position:    vector3
-- heading:     number
-- networked:   boolean

-- RETURNS
-- nil

local ent = ti.vehicles.spawnAsync("buffalo",function(ent)
  print(ent)
end,GetEntityCoords(PlayerPedId()),0.0,true)

Last updated