function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('slapme', slap_cmd)
while true do
wait(0)
end
end
function slap_cmd()
if isCharInAnyCar(PLAYER_PED) then
detachCharFromCar(PLAYER_PED)
end
posx, posy, posz = getCharCoordinates(PLAYER_PED)
setCharCoordinates(PLAYER_PED, posx, posy, posz + 2)
end