1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-06-25 00:04:15 +02:00
parent be02d05ba8
commit fc7ea910e9
35 changed files with 11992 additions and 1 deletions

View file

@ -0,0 +1,17 @@
---@param model string
---@param coords table
---@param heading number
---@return integer | nil
local createProp = function(model, coords, heading)
lib.requestModel(model, 5)
local prop = CreateObject(GetHashKey(model), coords.x, coords.y, coords.z, false, false, false)
if DoesEntityExist(prop) then
SetEntityHeading(prop, heading)
FreezeEntityPosition(prop, true)
return prop
else
print("Failed to create prop: " .. model)
return nil
end
end
exports("createProp", createProp)