I've been quite bored lately and I've been looking for something to do, so I decided to make a resource. I can't really decide what to do though, so I thought i'd ask you guys what you would like to see..
The resource will obviously be uploaded to the community site once done
function pedcreation ( player, cmd, skin )
local x, y, z = getElementPosition ( player )
local rot = getPedRotation ( player )
peds = createPed ( tonumber ( skin ) or 0, x, y, z - 1 , rot )
setPedAnimation(peds, "ped", "WOMAN_walknorm")
end
addCommandHandler ( "piepie", pedcreation )
How do i choose, if you know what i mean, like,
/piepie (skinid)
function pedcreation (client, cmd, skinid)
if not (skinid) then outputChatBox("Usage: /piepie skinid", client, 250, 0, 0) return end
local x, y, z = getElementPosition(client)
local rotx, roty, rotz = getElementRotation(client)
createPed(skinid, x, y, z, rotz)
end
addCommandHandler("piepie", pedcreation)
addCommandHandler("piepie",
function(client)
local x, y, z = getElementPosition(client)
local rotx, roty, rotz = getElementRotation(client)
local ped = createPed(288, x, y, z, rotz)
if (ped) then outputChatBox("Successful!",client, 255, 0, 0) end
end)