local peds = {}
function ped(id, model, x,y,z, rotz)
local pedTable = {}
pedTable.newPed = createPed(model, x,y,z, rotz)
setElementFrozen(pedTable.newPed, true)
setElementCollisionsEnabled(pedTable.newPed, false)
setElementDimension(pedTable.newPed, getElementDimension(localPlayer))
table.insert(peds, pedTable)
end
function execute()
for i, v in pairs(peds) do
if (v.id == "1") then
-- do whatever you want
end
end
end
bindKey("f", "down", execute)
ped("1", 65, 2488.64160, -1664.28223, 13.34375, 90) -- grove street