Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Taxi Job #172

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions accounts/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ AddEvent("OnPlayerSteamAuth", OnPlayerSteamAuth)

function OnPlayerQuit(player)
PlayerData[player].is_online = 0
if PlayerData[player].job == "taxi" or PlayerData[player].job == "delivery" then
PlayerData[player].job = ""
end
SavePlayerAccount(player)
GatheringCleanPlayerActions(player)-- → Gathering
DestroyPlayerData(player)
Expand Down
8 changes: 8 additions & 0 deletions taxi/s_taxi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ AddEvent("OnPlayerJoin", function(player)
CallRemoteEvent(player, "taxi:setup", taxiNpcIds, taxiGarageIds, taxiVehicleNpcIds)
end)

AddEvent("job:onspawn", function(player)
GalaxHD551 marked this conversation as resolved.
Show resolved Hide resolved
--PlayerData[player].job_vehicle = trucksOnLocation[PlayerData[player].accountid] -- Pour récupérer la propriété du véhicule de prêt
if PlayerData[player].job == "taxi" then -- Anti glitch
CallRemoteEvent(player, "taxi:client:isonduty", true)
end
end)


--------- SERVICE
function TaxiStartStopService(player)
if PlayerData[player].job == "" then
Expand Down