This commit is contained in:
Nordi98 2025-07-14 15:59:33 +02:00
parent 4c47f97c2a
commit 096c4ffcaf
22 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,14 @@
--Example: /prop prop_sandwich_01 18905 mp_player_inteat@burger mp_player_int_eat_burger
RegisterCommand('prop',function(source, args, rawCommand)
local model = joaat(args[1] or "prop_cs_burger_01")
if not HasModelLoaded(model) then RequestModel(model) while not HasModelLoaded(model) do Wait(1) end end
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)
local object = CreateObject(model, playerCoords.x, playerCoords.y, playerCoords.z, false, false, false)
local boneArg = args[2]
local boneToNumber = tonumber(boneArg)
local bone = (boneArg and boneToNumber) and GetPedBoneIndex(playerPed, boneToNumber) or boneArg and GetEntityBoneIndexByName(playerPed, boneArg) or 18905
local objectPositionData = useGizmo(object, bone, args[3], args[4])
print(objectPositionData[1])
print(objectPositionData[2])
end)