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: false)
1. setVehicleEngineState(veh,false) nie chce działać
Co? setVehicleEngineState(veh,false) nie chce gasi? mi pojazdu (a chce tak zrobi? poniewa? buguj? mi si? customowe dzwi?ki pojazdu i zostaj? w miejscu, a gdy zghasze pojazd to te dzwi?ki znikaj?.

addEventHandler("onMarkerHit", oCuboid, function(player)
    if 
not player or not isElement(player) then return end
    
if getElementType(player) ~= "player" then return end
    
if not isPedInVehicle(player) then return end
    
--local spraw = getPedOccupiedVehicle(player)
    
local veh = getPedOccupiedVehicle(player)
    
local spr = getVehicleEngineState(veh)
    
local wyk = exports["smta_base_db"]:wykonaj("UPDATE smtadb_vehicles SET przechowalnia=1 WHERE id=?",getElementData(veh, "id"))
        if 
getElementData(veh,"id") then
    
if wyk then
        exports
["smta_base_notifications"]:noti("Pojazd zosta? zaparkowany na parkingu.", player)
        
exports["smta_veh_base"]:zapiszPojazdy(veh)
        
setVehicleEngineState(veh,false)
        
destroyElement(veh)
    else
        
outputChatBox("REVOLT_VEH_STORE - #01 - Zg?o? b??d.", g, 255, 0, 0)

    
end
    end
end
)