Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. TriggerEvent('lester:createBlip', 77, 706.669, -966.898, 30.413)
  3. while true do
  4.  
  5. Citizen.Wait(1)
  6.  
  7. local playerPed = PlayerPedId()
  8. local coords = GetEntityCoords(playerPed)
  9.  
  10. if GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), 706.669, -966.898, 30.413, true) <= 10 and not blip then
  11. DrawMarker(20, 706.669, -966.898, 30.413, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 100, 102, 100, false, true, 2, false, false, false, false)
  12. if GetDistanceBetweenCoords(coords, 706.669, -966.898, 30.413, true) < 1.0 then
  13. DisplayHelpText(('Apasa E pentru a vinde bijuteriile'))
  14. if IsControlJustReleased(1, 51) then
  15. blip = true
  16. -- vrpJW.TriggerServerCallback('esx_ambulancejob:getItemAmount', function(quantity)
  17. local user_id = vRP.getUserId({source})
  18. local quantity = vRP.getInventoryItem({user_id,"jewels"})
  19. if (quantity > 20) then
  20. vrpJW.TriggerServerCallback('vrp_jewerly:conteggio', function(CopsConnected)
  21. if CopsConnected >= Config.RequiredCopsSell then
  22. FreezeEntityPosition(playerPed, true)
  23. TriggerEvent('mt:missiontext', ('goldsell'), 10000)
  24. Wait(10000)
  25. FreezeEntityPosition(playerPed, false)
  26. TriggerServerEvent('lester:vendita')
  27. blip = false
  28. else
  29. blip = false
  30. --TriggerEvent('esx:showNotification', _U('copsforsell') .. Config.RequiredCopsSell .. _U('copsforsell2'))
  31. end
  32. end)
  33. else
  34. blip = false
  35. --TriggerEvent('esx:showNotification', _U('notenoughgold'))
  36. end
  37. -- end, 'jewels')
  38. end
  39. end
  40. end
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement