Witam.
mam taki kod
addEventHandler("onMarkerHit", marker, function(he,md)
if not md or getElementType(he)~="player" then return end
local pojazd=getPedOccupiedVehicle(he)
if not pojazd then return end
if getVehicleController(pojazd)~=he then return end
if getElementModel(pojazd)==530 then
outputChatBox("Dostarczyles Drewno Dostales 150$", he)
givePlayerMoney(he, 150)
end
end)
Lecz potrzebowal bym jeszcze 1 funkcji jezeli np mam tego forklifta i ten forklift jest z drewnem na sobie dopiero da kase
Jest taka funkcja ?? drewno robie w map editore i forklift moze je podnosic lecz nie znam funkcji na to ze jak fork lift z tym drewnem jest i wjedzie w marker to dostanie kase a jak jest bez drewna to nie dostanie.