Adding a check If a player is using an authorized vehicles.

Co-Authored-By: William Plunkett Jr <humantree92@users.noreply.github.com>
This commit is contained in:
BrakingESX247
2020-07-22 02:07:34 +01:00
parent 778bcf82d1
commit dda412968d
8 changed files with 20 additions and 0 deletions
+13
View File
@@ -713,6 +713,19 @@ Citizen.CreateThread(function()
end
end)
Citizen.CreateThread(function()
while onJob do
Citizen.Wait(10000)
if ESX.PlayerData.job ~= nil and ESX.PlayerData.job.grade < 3 then
if not IsInAuthorizedVehicle() then
ClearCurrentMission()
OnJob = false
ESX.ShowNotification(_U('not_in_taxi'))
end
end
end
end)
-- Key Controls
Citizen.CreateThread(function()
while true do