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: deluxo
1. deluxo mode
Witam mam deluxo mod ale jak raz odpalilem pozniej chce wylaczyc lub jak schowam do przecho i chce wlaczyc to mi spamuje Uruchomiono tryb latania (X) oraz Wy??czono tryb latania (X)


local car_fly 
false

function fly()
    
local vehicle getPedOccupiedVehicle(localPlayer)
    if 
getElementModel(vehicle) == 502 then
        
if car_fly == false then
            setWorldSpecialPropertyEnabled
("aircars"true)
            
outputChatBox("* Uruchomiono tryb latania (X).")
            
car_fly true
        
elseif car_fly == true then
            setWorldSpecialPropertyEnabled
("aircars"false)
            
outputChatBox("* Wy??czono tryb latania (X).")
            
car_fly false
        end
    end
end

addEventHandler
("onClientResourceStart"getRootElement(), function()
    
bindKey("X""down"fly) -- Tu masz bind
end
)
2. Deluxo podpięte pod baze.
Chcia?em zrobi? co? na zasadzie, ?e jak masz w bazie danych "dm" ustawione na 1 to mo?esz uzywa? deluxo. Pomo?e kto?, bo nie wiem co robie ?le. Stawiam zimne piwka za pomoc! :piwo:

local car_fly false

function fly()
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_vehicles WHERE dm=?"1)
local vehicle getPedOccupiedVehicle(localPlayer)
    if 
#result == 1 then
    
if car_fly == false then
        setWorldSpecialPropertyEnabled
("aircars"true)
        
outputChatBox("W??czy?e? tryb latania!",source)
        
car_fly true
    end
end
end

function offfly()
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_vehicles WHERE dm=?"1)
local vehicle getPedOccupiedVehicle(localPlayer)
    if 
#result ~= 0 then
    
if car_fly == true then
    setWorldSpecialPropertyEnabled
("aircars"false)
    
outputChatBox("Wy??czy?e? tryb latania!",source)
    
car_fly false
end
end
end

function removeHelmetOnExit (thePlayerseatjacked)
    
setWorldSpecialPropertyEnabled("aircars"false)
    
car_fly false
end
addEventHandler 
"onClientVehicleExit"getRootElement(), removeHelmetOnExit )


addEventHandler("onClientResourceStart"getRootElement(), function()
    
bindKey("X""down"fly) -- Tu masz bind
    bindKey
("C""down"offfly)
end)
3. DELUXO
Witam ostatnio czyli 3-5 mies. temu pojawi? si? skrypt na deluxo ogarne?em se all ju? ale jest jeden problem gdy wchodze do pojazdu pokazuje mi to 2 razy nie wiem czy to wina jest vth czy vtt

 --[[ 
AutorDirexus 
Przer
?bkavNex 
]]-- 

local car_fly false

function wylaczLatanie()
    
setWorldSpecialPropertyEnabled("aircars"false)
    
car_fly false
end

function fly() 
    
local vehicle getPedOccupiedVehicle(getLocalPlayer()) 
    if 
vehicle then 
        
if (getElementModel(vehicle) == 559then -- tu dajesz id auta 
            
if (not car_flythen 
                setWorldSpecialPropertyEnabled
("aircars"true
                
outputChatBox("* Uruchomiono tryb latania (X)."02550)
                
addEventHandler("onClientVehicleExit"vehiclewylaczLatanie
                
car_fly true
            
elseif car_fly == true then
                setWorldSpecialPropertyEnabled
("aircars"false
                
outputChatBox("* Wy??czono tryb latania (X)."25500
                
removeEventHandler("onClientVehicleExit"vehiclewylaczLatanie
                
car_fly false
            end
        end 
    end 
end 

addEventHandler
("onClientResourceStart"getRootElement(), function() 
    
bindKey("X""down"fly) -- Tu masz bind 
end
4. DELUXO
Wi?c, m?j k?opot wygl?da nast?puj?co, znalazlem na tym forum pewny skrypt na deluxo *dzia?a?*, ale niestety jak si? nie wy?aczy?o latania w danym pojezdzie i jak si? wzi??o kolejny pojazd te? lata?, wi?c poszepera?em i znalaz?em kod poni?ej kt?ry nie dzia?a, a ma robi? tak ?e jak si? wyjdzie z samochodu, to inne auta nie maj? atutu latania, tylko ten jeden o danym ID.
[lua]
--[[
Autor: Direxus
Przer?bka: vNex
]]--

local car_fly = false

function wylaczLatanie()
setWorldSpecialPropertyEnabled("aircars", false)
car_fly = false
end

function fly()
local vehicle = getPedOccupiedVehicle(getLocalPlayer())
if (not vehicle) then
if (getElementModel(vehicle) == 559) then -- tu dajesz id auta
if (not car_fly) then
setWorldSpecialPropertyEnabled("aircars", true)
outputChatBox("* Uruchomiono tryb latania (X).")
addEventHandler("onClientVehicleExit", vehicle, wylaczLatanie)
car_fly = true
elseif car_fly == true then
setWorldSpecialPropertyEnabled("aircars", false)
outputChatBox("* Wy?‚?…czono tryb latania (X).")
removeEventHandler("onClientVehicleExit", vehicle, wylaczLatanie)
car_fly = false
end
end
end
end

addEventHandler("onClientResourceStart", ge...
5. latanie deluxo
Witam ostatnio natkn??em si? tutaj na skrypt "Lataj?ce Auto" jakim jest Deluxo
jednak po w??czeniu funkcji latania i wyj?ciu z pojazdu wsiadam do innego auta i nim te? si? da lata? jak zrobi? funkcj? kt?ra b?dzie usuwa? latanie po wyj?ciu z deluxo