mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 22:01:37 +00:00
Press [E] to exit property
This commit is contained in:
+7
-1
@@ -868,7 +868,9 @@ AddEventHandler('esx_property:hasEnteredMarker', function(name, part)
|
||||
end
|
||||
|
||||
if part == 'exit' then
|
||||
ExitProperty(name)
|
||||
CurrentAction = 'room_exit'
|
||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour sortir de la propriété'
|
||||
CurrentActionData = {propertyName = name}
|
||||
end
|
||||
|
||||
if part == 'roomMenu' then
|
||||
@@ -1026,6 +1028,10 @@ Citizen.CreateThread(function()
|
||||
OpenRoomMenu(CurrentActionData.property)
|
||||
end
|
||||
|
||||
if CurrentAction == 'room_exit' then
|
||||
ExitProperty(CurrentActionData.propertyName)
|
||||
end
|
||||
|
||||
CurrentAction = nil
|
||||
GUI.Time = GetGameTimer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user