mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 02:38:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user