addEventHandler("onMarkerHit",sklepfc,
function(element)
if getElementType(element) == 'player' then
local car = getPedOccupiedVehicle(element)
local veh = getVehicleName(car)
local model = getVehicleModelFromName(veh)
if auta[getElementModel(model)] then
outputChatBox ( "[Informacja] Pojed? do magazynu w Las Venturas by zap?aci? za kupiony przez sklep towar.",elementHit,100,100,0,true)
setElementData ( auto1, "praca", true )
else
outputChatBox ("[B??d] Potrzebujesz odpowiedniego pojazdu by odebra? zlecenie !",elementHit,200,200,0,true)
end
end
end
)
addEventHandler("onMarkerHit",magazyn,
function(element)
if getElementType(element) == 'player' then
local car = getPedOccupiedVehicle(element)
local veh = getVehicleName(car)
local model = getVehicleModelFromName(veh)
if auta[getElementModel(model)] then
if getElementData ( auto, "praca" ) then
return outputChatBox ( "Masz ju? prac?", element ) end
outputChatBox( "[Informacja] Oddano pieni?dze w?a?cicielowi magazynu, obok czeka kolejne zlecenie sprawd? je!",element,200,200,0,true)
destroyElement(pojazd)
setElementData ( auto, "praca", false )
else
outputChatBox ("[B??d] Potrzebujesz odpowiedniego pojazdu, lub nie dobra?e? zlecenia !",element,200,200,0,true)
end
end
end
end
)