Check IsControlJustReleased() every frame

This commit is contained in:
ElPumpo
2018-12-30 21:32:38 +01:00
parent 0fd3440bb5
commit b50a94bf24
+1 -2
View File
@@ -381,7 +381,7 @@ end)
-- Activate menu when player is inside marker
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
Citizen.Wait(0)
local playerPed = PlayerPedId()
if IsPedInAnyVehicle(playerPed, false) then
local coords = GetEntityCoords(PlayerPedId())
@@ -393,7 +393,6 @@ Citizen.CreateThread(function()
if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x then
isInLSMarker = true
ESX.ShowHelpNotification(v.Hint)
break
else
isInLSMarker = false