Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. function setPedWalkStyle(thePlayer, cmd, id)
  2. local money = getPlayerMoney(thePlayer)
  3. if (money == 5000) or (money > 5000) then
  4. takePlayerMoney(thePlayer, 5000)
  5. setPedWalkingStyle(thePlayer, tonumber(id))
  6. outputChatBox("You've successfuly bought a Walk Style ( "..tonumber(id).." ) !", thePlayer , 0 , 255, 0)
  7. elseif not (money == 5000) or (money > 5000) then
  8. outputChatBox("You don't have enough money to buy a Walk Style", thePlayer, 255, 0, 0)
  9. end
  10. end
  11. addCommandHandler("buywalkstyle", setPedWalkStyle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement