mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 21:01:31 +00:00
Add job check for taxi menu
This commit is contained in:
+1
-1
@@ -705,7 +705,7 @@ Citizen.CreateThread(function()
|
||||
|
||||
end
|
||||
|
||||
if IsControlPressed(0, Keys['F6']) and Config.EnablePlayerManagement and (GetGameTimer() - GUI.Time) > 150 then
|
||||
if IsControlPressed(0, Keys['F6']) and Config.EnablePlayerManagement and PlayerData.job ~= nil and PlayerData.job.name == 'taxi' and (GetGameTimer() - GUI.Time) > 150 then
|
||||
OpenMobileTaxiActionsMenu()
|
||||
GUI.Time = GetGameTimer()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user