Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: getpedoccupiedvehicle
1. Bad argument @ 'getPedOccupiedVehicle' [Expected ped at argu
hey mam problem z zdefiniowaniem go?cia w aucie kto? pomo?e?
oto kod
s-side

function pomocnik ()
setTimer(function(thePlayer)
veh = getPedOccupiedVehicle(thePlayer) --wy?wietla sie ten error co w temacie
if veh then
if getElementData(veh,"zarejestrony") == 1 then
                triggerClientEvent
(thePlayer, "STARTJobBus", resourceRoot,veh) 
end
end
end
, 5000, 0 )
end
addEventHandler
("onResourceStart",getRootElement(),pomocnik)
2. getPedOccupiedVehicle
Witam, ot?? mam problem i? wszystko ?adnie dzia?a, lecz w debugu wyskakuje warning, ?e "zly argument" chodz wszystko dobrze dzia?a. Debug wyskakuje po usuni?ciu pojazdu.


local v 
= getPedOccupiedVehicle(el)
    if 
not v then return end



if v then destroyElement(v) v = nil end


I nie chodzi tutaj o destroyElement tylko o pobieranie czy gracz jest w poje?dzie.
3. getPedOccupiedVehicle
Siemka!
Mam ma?y problem poniewa? wywala mi b??d gdy pobieram getPedOccupiedVehicle

KOD:
wejscie = createMarker(-2049.56,449.87,35.17+0.75, "arrow", 1.5, 0, 0, 0, 255)

addEventHandler("onMarkerHit", wejscie,
function(
plr)
    if 
getPedOccupiedVehicle(plr) then return end
        fadeCamera
(plr, false, 1.0)
        
setTimer(fadeCamera, 1500, 1, plr, true, 1.0)
        
setTimer(setElementPosition, 1200, 1, plr, -2042.93,450.77,139.74)
        
setTimer(setElementRotation, 1250, 1, plr, 0, 0, 270)
end)


B??d
Kod:

Bad argument @ 'getPedOccupiedVehicle' [Expected ped at argument 1, got vehicle]


Za pomoc :piwo:
4. getPedOccupiedVehicle
Witam! Chyba nie musz? tutaj przedstawia? ca?ego kodu. No wi?c, stworzy?em sobie Tuning Shop, i po zakupie naprzyk?ad felg - felgi ci daje, ale po wyj?ciu i wej?ciu do gry felg w pojezdzie nie ma. Jakie? pomys?y? :piwo:
U?ywam
local atuko = getPedOccupiedVehicle ( getLocalPlayer() )