Add job check for taxi menu

This commit is contained in:
Jérémie N'gadi
2017-08-04 14:46:25 +02:00
parent dcf8df0df8
commit 7eff2640c6
+1 -1
View File
@@ -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