Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-04-18, 17:37


Axmell

E-Commerce






Wiek: 24
Na forum: 3951 dni
Posty: 279
Nick w MP: %Axmell

Piwa: 224

Respekt: 50

Witam jak zrobic miganie mryga?ek na czas np co 1s.

local premier1 = createVehicle(560, -1600.423828125, 692.369140625, -5.46, 0, 0, 0)
removeVehicleSirens(premier1)
addVehicleSirens(premier1, 5, 5, true, false, false, true)
setVehicleSirens(premier1, 1, -0.9, -2.4, 0.1, 255, 128, 0, 255, 255) 
local velocity = 5000.00
local acceleration = 50
local slock = 40. -- (Promien) 
local trac = 0.95
setVehicleHandling(premier1, "tractionMultiplier", trac)
setVehicleHandling(premier1, "steeringLock", slock)
setVehicleHandling(premier1, "maxVelocity", velocity)
setVehicleHandling(premier1, "engineAcceleration", acceleration)
setElementFrozen(premier1, false)
addVehicleUpgrade(premier1, 1025)
addVehicleUpgrade(premier1, 1158)
addVehicleUpgrade(premier1, 1033)
addVehicleUpgrade(premier1, 1041)
addVehicleUpgrade(premier1, 1069)
addVehicleUpgrade(premier1, 1029)
setVehicleColor(premier1, 0, 0, 0)
setVehiclePlateText(premier1, "SAPD#01")

jak podpi?c do tego kazy pojazd o id 560

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-19, 14:29


MIKAELmta







Wiek: 25
Na forum: 4119 dni
Posty: 311

Piwa: 10631

Respekt: 355,3
Respekt: 355,3Respekt: 355,3Respekt: 355,3Respekt: 355,3

Warunek na pojazd o id 560, najlepiej w oddzielnym kodzie..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-19, 19:23


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4189 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1892

Respekt: 460
Respekt: 460

Nwm czy oto ci chodzi kiedy? tego wykorzystywa?em do Frakcji jak nie umia?em bardziej msql to jest Premier syreny s? podpisane pod grupe acl Lv-Poli

unction createVeh4(model,x,y,z, rx,ry,rz) 

if model and x and y and z and rx and ry and rz then 

local veh = createVehicle(model,x,y,z, rx, ry, rz) 

removeVehicleSirens(veh)

addVehicleSirens(veh, 6, 2, false, false, false, true) 

setVehicleSirens ( veh, 1, 0.800, 2.400, 0.000, 0, 0, 255, 255, 255 )
setVehicleSirens ( veh, 2, -0.800, 2.400, 0.000, 0, 0, 255, 255, 255 )
setVehicleSirens ( veh, 3, -0.800, -2.700, 0.000, 255, 0, 0, 255, 255 )
setVehicleSirens ( veh, 4, 0.800, -2.700, 0.000, 255, 0, 0, 255, 255 )
setVehicleSirens ( veh, 5, 0.100, -1.900, 0.300, 255, 0, 0, 255, 255 )
setVehicleSirens ( veh, 6, 0.100, -1.900, 0.300, 0, 0, 255, 255, 255 )
setVehicleSirens ( veh, 7, 0.700, 0.800, 0.300, 0, 0, 255, 255, 255 )


setElementData(veh, "pojazd_paliwo", 100)
setElementFrozen(veh, true)
setVehicleColor(veh, 0, 0, 0 )
addVehicleUpgrade (veh, 1096 )
setVehicleHandling(veh,"maxVelocity", 180)
setVehicleHandling(veh, "engineAcceleration", 21)
setVehicleHandling(veh, "ABS", true )
setVehicleHandling(veh, "steeringLock", 55 )
setVehicleHandling(veh, "driveType", "awd")

end 
end 

function veh() 
createVeh4(426, 2263.81,2474.90,2.90,0.0,0.0,358.0)
createVeh4(426, 2267.98,2474.90,2.91,0.0,0.0,1.4)
createVeh4(426, 2272.36,2474.90,2.90,0.0,360.0,2.1)
createVeh4(426, 2276.89,2474.90,2.90,0.0,0.0,358.4)
createVeh4(426, 2281.21,2474.90,2.90,0.0,0.0,358.0)
createVeh4(426, 2285.92,2474.90,2.90,0.0,0.0,1.5)

end 
addEventHandler("onVehicleStartEnter", resourceRoot, function(plr,seat)
if seat == 0 then
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountName, aclGetGroup("Lv-Poli")) then return end
outputChatBox("* Nie jeste? pracownikiem tej frakcji.", plr, 255, 255, 255)
cancelEvent()
return
end
end)
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),veh) 


Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Tagi: czas :: coś
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku