Objects
Work with objects
Create object
Example
rcore = exports.rcore
local obj = 'prop_car_door_01'
RegisterCommand('spawnobj',function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
rcore:createObject(obj,coords,function(objId)
print('Yes we created object and we got it ID '..objId)
end)
end)Last updated