mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 23:01:36 +00:00
fix compare string with number
This commit is contained in:
+3
-3
@@ -331,7 +331,7 @@ function OpenMobileTaxiActionsMenu()
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) and GetPedInVehicleSeat(vehicle, -1) == playerPed then
|
||||
|
||||
if ESX.PlayerData.job.grade >= 3 then
|
||||
if tonumber(ESX.PlayerData.job.grade) >= 3 then
|
||||
StartTaxiJob()
|
||||
else
|
||||
if IsInAuthorizedVehicle() then
|
||||
@@ -343,7 +343,7 @@ function OpenMobileTaxiActionsMenu()
|
||||
|
||||
else
|
||||
|
||||
if ESX.PlayerData.job.grade >= 3 then
|
||||
if tonumber(ESX.PlayerData.job.grade) >= 3 then
|
||||
ESX.ShowNotification(_U('must_in_vehicle'))
|
||||
else
|
||||
ESX.ShowNotification(_U('must_in_taxi'))
|
||||
@@ -888,4 +888,4 @@ end)
|
||||
|
||||
AddEventHandler('playerSpawned', function(spawn)
|
||||
IsDead = false
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user