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)
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(vnil 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.5000255)

addEventHandler("onMarkerHit"wejscie,
function(
plr)
    if 
getPedOccupiedVehicle(plrthen return end
        fadeCamera
(plrfalse1.0)
        
setTimer(fadeCamera15001plrtrue1.0)
        
setTimer(setElementPosition12001plr, -2042.93,450.77,139.74)
        
setTimer(setElementRotation12501plr00270)
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() )