mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 13:01:34 +00:00
Resolves #55, very final commit v1.1.0
This commit is contained in:
@@ -125,10 +125,24 @@ function ReturnVehicleProvider()
|
||||
|
||||
end
|
||||
|
||||
function StartShopRestriction()
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while IsInShopMenu do
|
||||
Citizen.Wait(1)
|
||||
|
||||
DisableControlAction(0, 75, true) -- Disable exit vehicle
|
||||
DisableControlAction(27, 75, true) -- Disable exit vehicle
|
||||
end
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
function OpenShopMenu()
|
||||
|
||||
IsInShopMenu = true
|
||||
|
||||
StartShopRestriction()
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
Reference in New Issue
Block a user