Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. if tries < 3 then
  2. if playerchoice == computerchoice then
  3. TriggerEvent("pNotify:SendNotification", {
  4. text = 'Du gissade rätt',
  5. type = "success",
  6. queue = "records",
  7. timeout = 3000,
  8. layout = "bottomCenter"
  9. })
  10. ESX.UI.Menu.CloseAll()
  11. TriggerEvent("pNotify:SendNotification", {
  12. text = 'Du mottog din vinst på ' .. price*1.2 .. ' kr',
  13. type = "success",
  14. queue = "records",
  15. timeout = 3000,
  16. layout = "bottomCenter"
  17. })
  18. elseif playerchoice < computerchoice then
  19. TriggerEvent("pNotify:SendNotification", {
  20. text = 'För lågt',
  21. type = "success",
  22. queue = "records",
  23. timeout = 3000,
  24. layout = "bottomCenter"
  25. })
  26. tries=tries+1
  27. elseif playerchoice > computerchoice then
  28. TriggerEvent("pNotify:SendNotification", {
  29. text = 'För högt',
  30. type = "success",
  31. queue = "records",
  32. timeout = 3000,
  33. layout = "bottomCenter"
  34. })
  35. tries=tries+1
  36. end
  37. end
  38. end
  39. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement