fix compare string with number

This commit is contained in:
TanguyOrtegat
2018-09-02 22:53:01 +02:00
committed by GitHub
parent 5ef9e2c0dd
commit 4a9852e982
+3 -3
View File
@@ -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)