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
+1 -1
View File
@@ -21,7 +21,7 @@ Locales['sv'] = {
['invoice_amount'] = 'faktureringsbelopp',
['no_players_near'] = 'det finns ingen spelare i närheten!',
['start_job'] = 'starta / sluta köra NPC',
['drive_search_pass'] = 'Åtk runt för att hitta ~y~kunder~s~',
['drive_search_pass'] = 'Åk runt för att hitta ~y~kunder~s~',
['customer_found'] = 'du har ~g~hittat~s~ en kund!',
['client_unconcious'] = 'din kund är ~r~medvetslös~s~. Hitta en ny.',
['arrive_dest'] = 'du har ~g~anlänt~s~ till din destination',