Advertisement
lizardd

app

Apr 18th, 2021
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. lokacija.lua
  2.  
  3. ##
  4.  
  5. Citizen.CreateThread(function()
  6.  
  7. local tipka_h = 74
  8.  
  9.   while 1 do
  10.     Citizen.Wait(1)
  11.  
  12.         if IsControlJustReleased(0, tipka_h) then
  13.               local koordinati = math.ceil(GetEntityCoords(PlayerPedId()))
  14.               print_top("Trenutna lokacija: "..koordinati)
  15.         end
  16.     end
  17. end)
  18.  
  19.  
  20. dodatki/print_top funkcija
  21.  
  22. ##
  23. function print_top(tekst)
  24.   SetTextComponentFormat("STRING")
  25.   AddTextComponentString(tekst)
  26.   DisplayHelpTextFromStringLabel(0, 0, 1, -1)
  27. end
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement