addEvent("OnTaxiJob",true)
addEventHandler("OnTaxiJob",root,
function (skin)
if ( getElementData( source, "Job" ) == "TaxiJob" ) then return end
setElementModel(source,tonumber(skin))
setElementData (source,"Job","TaxiJob" )
local Employed = getTeamFromName("Employed") -----اضفت دا السطر
if (Employed) then ------------ + هدا السطر
setPlayerTeam(source,Employed)
triggerClientEvent(source,"CreateTaxiMarkers",source)
if getElementData(source,"Language") then
outButDxChat("#AE00FF(TaxiJob) : #00FF00 لقد تم قبولك في وظيفة سائق التاكسي",source,0,255,255,true)
else
outButDxChat("#AE00FF(TaxiJob) : #00FF00You Join The Taxi Job ! ",source,0,255,255,true)
end
end
end)
نفس الخطأ
#Edit:
تم الافادة