Advertisement
Trsak

Untitled

May 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local jobPrice = price * 0.5
  2. if xPlayer.job.name == "mafia" or xPlayer.job.name == "unicorn" then
  3. price = price * 1.2
  4. local society
  5.  
  6. if xPlayer.job.name == "mafia" then
  7. society = "society_mafia"
  8. else
  9. society = "society_unicorn"
  10. end
  11.  
  12. TriggerEvent(
  13. "esx_addonaccount:getSharedAccount",
  14. society,
  15. function(account)
  16. account.addMoney(jobPrice)
  17. end
  18. )
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement