function main()
wait(5000)
SampRegisterChatCommand("search",cmd)
end
function cmd(arg)
if #arg == 0 then
sampAddChatMessage(string.format("/search id"),FF0000)
else
ped = sampGetCharHandleBySampPlayerId(arg)
positionX, positionY, positionZ = getCharCoordinates(ped)...