Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lokacija.lua
- ##
- Citizen.CreateThread(function()
- local tipka_h = 74
- while 1 do
- Citizen.Wait(1)
- if IsControlJustReleased(0, tipka_h) then
- local koordinati = math.ceil(GetEntityCoords(PlayerPedId()))
- print_top("Trenutna lokacija: "..koordinati)
- end
- end
- end)
- dodatki/print_top funkcija
- ##
- function print_top(tekst)
- SetTextComponentFormat("STRING")
- AddTextComponentString(tekst)
- DisplayHelpTextFromStringLabel(0, 0, 1, -1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement