Advertisement
Guest User

Help me fixing the Notification <3

a guest
Apr 1st, 2020
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. This is the Part where the Message is triggered (CurrentActionMsg = ('press_menu'))
  2.  
  3. Citizen.CreateThread(function()
  4. while true do
  5. Citizen.Wait(0)
  6. DrawMarker(1, coords.x, coords.y, coords.z, 0, 0, 0, 0, 0, 0, size, size, height, 0, 155, 255, 155, 0, 0, 2, 0, 0, 0, 0)
  7. if GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), coords.x, coords.y, coords.z, true) < size then
  8. CurrentActionMsg = ('press_menu')
  9. if (IsControlJustPressed(1, Key)) then
  10. TriggerEvent("TrafficAlert")
  11. end
  12. end
  13. end
  14. end)
  15.  
  16. So this is my config.lua:
  17.  
  18. Config = {}
  19. Config.Locale = 'en'
  20.  
  21. and here is my en.lua:
  22.  
  23. Locales['en'] = {
  24. ['press_menu'] = 'Drücke ~INPUT_CONTEXT~ um eine kostenlose Werbung zu schicken!'
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement