mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Check IsControlJustReleased() every frame
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user