- Katılım
- 4 yıl 4 ay 27 gün
- Mesajlar
- 21
arkadaslar slm, fivem tarihinin en iyi developeri **sturcu yuzunden parasini bitirdigi icin geri dondu ve script calmaya tekrar basladi, karsinizida tgiann abimizin yaptigi MUHTESEM WHEELIE SCRIPTI (kesinlikle tgiann abim yapti tsk), bu script kisaca motorlarla modu actiginiz zaman sonsuza kadar tekere kalkmaniza yariyor. hayirli olsun fivem camiasina donusum.
Kod:
local muhtesemWheelieAcikKapaliTgiannAbim = false
local sonAracTgiannAbim = nil
local aracMaksimumVitesKoluSayisiTgiannAbim = nil
local aracMaksimumHizTgiannAbim = nil
RegisterCommand('muhtesemwheelieackapa', function()
local ped = PlayerPedId()
sonAracTgiannAbim = GetVehiclePedIsUsing(ped)
if GetVehicleClass(sonAracTgiannAbim) ~= 8 then
TriggerEvent("QBCore:Notify", "Arac motor degil!!!", "error")
return
end
if GetPedInVehicleSeat(sonAracTgiannAbim, -1) ~= ped then
TriggerEvent("QBCore:Notify", "Araci sen surmelisin!", "error")
return
end
muhtesemWheelieAcikKapaliTgiannAbim = not muhtesemWheelieAcikKapaliTgiannAbim
if muhtesemWheelieAcikKapaliTgiannAbim then
TriggerEvent("QBCore:Notify", "Muhtesem wheelie modu acildi!", "success")
else
muhtesemWheelieAracSifirlaHD()
TriggerEvent("QBCore:Notify", "Muhtesem wheelie kapatildi!!", "error")
end
end)
function muhtesemWheelieKapaZorla(type)
if muhtesemWheelieAcikKapaliTgiannAbim == true then
muhtesemWheelieAcikKapaliTgiannAbim = false
muhtesemWheelieAracSifirlaHD()
if type == "arac_motor_degil!" then
TriggerEvent("QBCore:Notify", "Arac motor degil uzgunum :(", "error")
else
TriggerEvent("QBCore:Notify", "Muhtesem wheelie kapatildi!!", "error")
end
end
end
function muhtesemWheelieAracSifirlaHD()
if sonAracTgiannAbim then
SetVehicleMaxSpeed(sonAracTgiannAbim, aracMaksimumHizTgiannAbim)
SetVehicleHighGear(sonAracTgiannAbim, aracMaksimumVitesKoluSayisiTgiannAbim)
aracMaksimumVitesKoluSayisiTgiannAbim = nil
aracMaksimumHizTgiannAbim = nil
sonAracTgiannAbim = nil
muhtesemWheelieAcikKapaliTgiannAbim = false
end
end
Citizen.CreateThread(function()
while true do
if muhtesemWheelieAcikKapaliTgiannAbim then
Wait(1)
if sonAracTgiannAbim ~= 0 then
-- tgiann abim motosiklette mi kontrol et hd et
if GetVehicleClass(sonAracTgiannAbim) == 8 then
-- tgiann abim mi suruyor araci?
local ped = PlayerPedId()
if GetPedInVehicleSeat(sonAracTgiannAbim, -1) == ped then
if aracMaksimumVitesKoluSayisiTgiannAbim == nil then
aracMaksimumVitesKoluSayisiTgiannAbim = GetVehicleHighGear(sonAracTgiannAbim)
end
if aracMaksimumHizTgiannAbim == nil then
aracMaksimumHizTgiannAbim = GetVehicleMaxSpeed(sonAracTgiannAbim)
end
-- gaz al hd al
local aracClutch = GetVehicleClutch(sonAracTgiannAbim)
SetVehicleHighGear(sonAracTgiannAbim, 1)
SetVehicleMaxSpeed(sonAracTgiannAbim, 18.0)
print(GetVehicleMaxSpeed(sonAracTgiannAbim))
if aracClutch > 0.25 then
-- motoru arsa kaldir hacim!
SetVehicleClutch(sonAracTgiannAbim, 0.25)
end
else
muhtesemWheelieKapaZorla()
end
else
muhtesemWheelieKapaZorla("arac_motor_degil!")
end
else
muhtesemWheelieKapaZorla()
end
else
local ped = PlayerPedId()
local veh = GetVehiclePedIsUsing(ped)
Wait(1000)
end
end
end)