Only let drivers start npc job

This commit is contained in:
ElPumpo
2018-08-14 17:32:44 +02:00
parent e76cd892f6
commit b316cdca44
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ function OpenMobileTaxiActionsMenu()
if ESX.PlayerData.job ~= nil and ESX.PlayerData.job.name == 'taxi' then
local playerPed = PlayerPedId()
if IsPedInAnyVehicle(playerPed, false) then
if IsPedInAnyVehicle(playerPed, false) and GetPedInVehicleSeat(vehicle, -1) == playerPed then
local vehicle = GetVehiclePedIsIn(playerPed, false)
if ESX.PlayerData.job.grade >= 3 then