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: teslaquot
1. Coś typu "Stacja ładowania Tesla"
Chcia?bym przerobi? kod mechanika na stacje ?adowania do tesli lecz nie wiem jak to zrobi?, t?umacze jak mia?oby to dzia?a?.

Po wje?dzie pojazdem o id 307 dawa?o by vehicle:fuel na 100, lecz jezeli wjedzie sie innym pojazdem to nie bedzie dawac, tylko dla danego pojazdu.

Chcia?bym przerobi? ten kod:
Kod:

local mech = createMarker(-2053.7,178.6, 29.0,"cylinder",2.5,255, 0, 0, 255) -- miejsce markera
addEventHandler( "onMarkerHit",mech,
function (Player,mD)
if getElementType ( Player ) == "player" and mD then
if not isPedInVehicle (Player ) then
return outputChatBox("*Wsi?d? do pojazdu!", Player)
end
local kasa = getPlayerMoney(Player)
local autko = getPedOccupiedVehicle(Player)
if (kasa > 79) then
takePlayerMoney(Player, 80) -- cena za fixa
fixVehicle(autko, true)
outputChatBox("*Naprawi?e?/a? pojazd.", Player)
else
outputChatBox("*Nie sta? Ci? na napraw?!", Player)
end
end
end)

function blip()
createBlip(-2053.7,178.6, 29.7, 63, 0.40)
end
addEventHandler("onResourceStart", getRootElement(), blip)
[/code]