Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setPedWalkStyle(thePlayer, cmd, id)
- local money = getPlayerMoney(thePlayer)
- if (money == 5000) or (money > 5000) then
- takePlayerMoney(thePlayer, 5000)
- setPedWalkingStyle(thePlayer, tonumber(id))
- outputChatBox("You've successfuly bought a Walk Style ( "..tonumber(id).." ) !", thePlayer , 0 , 255, 0)
- elseif not (money == 5000) or (money > 5000) then
- outputChatBox("You don't have enough money to buy a Walk Style", thePlayer, 255, 0, 0)
- end
- end
- addCommandHandler("buywalkstyle", setPedWalkStyle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement