mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Only let drivers start npc job
This commit is contained in:
+1
-1
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user