Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.  
  3. while true do
  4. Citizen.Wait(0)
  5.  
  6. for k in pairs(place) do
  7.  
  8. local plyCoords = GetEntityCoords(GetPlayerPed(-1), false)
  9. local dist = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, place[k].x, place[k].y, place[k].z)
  10.  
  11. if dist <= 0.9 then
  12. --doesnt spam notifcations only shows top corner
  13.  
  14. hintToDisplay('Tryck ~INPUT_CONTEXT~ för att tvätta ~r~Svarta pengar')
  15.  
  16. if IsControlJustPressed(0, Keys['E']) then -- "E"
  17. TriggerServerEvent('esx_blackmoney:washMoney')
  18. end
  19. end
  20. end
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement