Wysłany: 2018-07-26, 22:24
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
Mam Problem poniewaz, Mam Przechowalnie, i gdy wyciagam auto to duplikoje sie razy 3 jest to problem poniewaz mam 3 przechowalnie? to sie wydaje jak by tak sie robilo poniewaz sa 3 przechowalnie da sie to jakos naprawic?
Przecho z New Place!!
Wysłany: 2018-07-26, 22:26
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Je?li masz je w 1 skrypcie to mo?liwe ?e ?le zosta?y one podpi?te i ci si? buguje.
Wysłany: 2018-07-26, 22:41
Malentas
Koder mirofali w lua
Wiek: 24 Na forum: 3681 dni Posty: 146
Nick w MP: Malentas
Piwa : 1626
masz pewnie 3 skrypty na przechowalnie co = 3 triggery i jak wyci?gasz pojazd wykonuj? si? 3 triggery i tworz? si? 3 auta musisz poprostu zmieni? triggery np wyciagnijPojazd1, wyciagnijPojazd2 etc.
Wysłany: 2018-07-26, 23:26
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
Zmienilem triggery i dalej to samo wczesniej sie respilo, 3 perki teraz 2, a zmienilem wszystkie przecho na inne triggery.
Wysłany: 2018-07-26, 23:29
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Wysłany: 2018-07-26, 23:41
MrThePat
Wiek: 26 Na forum: 2905 dni Posty: 1
Nick w MP: MrThePat
Napewno ustawi?e? dobrze te triggery?
Wysłany: 2018-07-26, 23:46
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
Kod czyli caly? bo sa Dwa
[ Dodano : 2018-07-26, 23:48 ]
Dobrze ustawilem bo triggery sa widze, i jest "wyjmij" to w innych dalem wyjmij2, 3 itp
Pierw Sie respily trzy , potem jak zmienilem 3 przechowywalnie to 2 sie respily..
Wysłany: 2018-07-26, 23:49
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Wysłany: 2018-07-26, 23:50
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
NA DOLE POPRAWNE!
Ostatnio zmieniony przez FeniksTV320 2018-07-27, 01:00, w całości zmieniany 1 raz
Wysłany: 2018-07-26, 23:52
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Prosze Ci?, daj ten kod w [lua'] [/lua], a nie link do pobrania.
Wysłany: 2018-07-26, 23:53
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
---- DOL LEPSZE
Ostatnio zmieniony przez FeniksTV320 2018-07-27, 00:51, w całości zmieniany 1 raz
Wysłany: 2018-07-27, 00:01
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Wysłany: 2018-07-27, 00:40
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
--[[
Autor : Malentas
]]
local odbieranie = {
{- 1743.06 , 963.26 , 24.88 },
}
local moddwanie = false
local modbieranie = false
addEventHandler ( "onResourceStart" , resourceRoot , function()
for _ , m in ipairs ( odbieranie ) do
modbieranie = createMarker ( m [ 1 ], m [ 2 ], m [ 3 ]- 0.95 , "cylinder" , 1.5 , 26 , 177 , 133 , 100 )
setElementData ( modbieranie , "przechowalnia2" , true )
end
end )
local oCuboid = createMarker (- 1758.18 , 959.61 , 24.88 - 0.95 , "cylinder" , 3.2 , 26 , 177 , 133 , 100 )
setElementData ( oCuboid , "przechowalnia" , true )
local wCuboid = createColCuboid (- 1753.06 , 956.43 , 23.88 , 7.01 , 6.93 , 1.90 , 4.1 , 8 , 4 )
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 veh = getPedOccupiedVehicle ( player )
local wyk = exports [ "np-mysql" ]: wykonaj ( "UPDATE pojazdy SET przechowalnia=1 WHERE id=?" , getElementData ( veh , "id" ))
if getElementData ( veh , "id" ) then
if wyk then
outputChatBox ( "Pojazd zosta?‚ zaparkowany na parkingu." , player , 255 , 255 , 255 )
exports [ "np-pojazdy" ]: zapiszPojazdy ( veh )
destroyElement ( veh )
else
outputChatBox ( "Blad przechowalni zglos sie do Administratora." , g , 255 , 255 , 255 )
end
end
end )
function sprawdzPrzechowalnie ( gracz )
return exports [ "np-mysql" ]: wykonaj ( "SELECT * FROM pojazdy WHERE wlasciciel=? AND przechowalnia=1" , getElementData ( gracz , "dbid" ))
end
addEventHandler ( "onMarkerHit" , resourceRoot , function( hit )
if source == modbieranie then
if getElementType ( hit ) ~= "player" then return end
if getPedOccupiedVehicle ( hit ) then return end
local spr = sprawdzPrzechowalnie ( hit )
if #spr < 1 then
outputChatBox ( "Nie posiadasz pojazdĂłw w przechowalni." , hit , 255 , 0 , 0 )
return
end
triggerClientEvent ( hit , "pojazdy" , hit )
end
end )
addEventHandler ( "onMarkerLeave" , resourceRoot , function( hit )
if source == modbieranie then
if getElementType ( hit ) ~= "player" then return end
triggerClientEvent ( hit , "pojazdy" , hit , true )
end
end )
addEvent ( "wyjmij3" , true )
addEventHandler ( "wyjmij3" , resourceRoot , function( gracz , id )
local vehicles = getElementsWithinColShape ( wCuboid , "vehicle" )
for _ , veh in ipairs ( vehicles ) do
if not getVehicleController ( veh ) then
if getElementData ( veh , "id" ) then
exports [ "np-mysql" ]: wykonaj ( "UPDATE pojazdy SET przechowalnia=1 WHERE id=?" , getElementData ( veh , "id" ))
end
destroyElement ( veh )
end
end
if #getElementsWithinColShape(wCuboid, "vehicle") > 0 then
exports [ "np-notyfikacje" ]: noti ( "Wyjazd z parkingu jest zastawiony, spróbuj później." , gracz )
return
end
local spr = exports [ "np-mysql" ]: wykonaj ( "SELECT * FROM prawka WHERE serial=? AND data>NOW()" , getPlayerSerial ( gracz ))
if #spr > 0 then
exports [ "np-notyfikacje" ]: noti ( "Posiadasz zawieszone prawo jazdy kat. A,B,C od " .. spr [ 1 ]. admin .. " do " .. spr [ 1 ]. data , gracz , "error" )
return
else
exports [ "np-mysql" ]: wykonaj ( "DELETE FROM prawka WHERE serial=?" , getPlayerSerial ( gracz ))
end
if getElementData ( gracz , "prawko_b" ) ~= 1 then
exports [ "np-notyfikacje" ]: noti ( "Nie posiadasz prawa jazdy." , gracz )
return
end
local q = exports [ "np-mysql" ]: wykonaj ( "select * from pojazdy where id=?" , id )
exports [ "np-mysql" ]: wykonaj ( "update pojazdy set przechowalnia=0 where id=?" , id )
local pojazd = exports [ "np-pojazdy" ]: stworzPojazdy ( q [ 1 ], 2062.38 , 2264.44 , 11 , 0 , 0 , 90 )
if pojazd then
warpPedIntoVehicle ( gracz , pojazd )
end
end )
function pokazpojazdy ()
local q = exports [ 'np-mysql' ]: wykonaj ( "SELECT * FROM pojazdy WHERE wlasciciel=? and przechowalnia=1" , getElementData ( source , "dbid" ))
local pojazdy = {}
for i = 1 , #q do
table . insert ( pojazdy , { model = q [ i ][ "model" ], id = q [ i ][ "id" ], kolor = q [ i ][ "kolor" ], swiatla = q [ i ][ "swiatla" ], paliwo = q [ i ][ "paliwo" ], bak = q [ i ][ "bak" ], przebieg = q [ i ][ "przebieg" ], pojemnosc = q [ i ][ "pojemnosc" ], stan = q [ i ][ "zdrowie" ], neon = q [ i ][ "neon" ], ms1 = q [ i ][ "ms1" ], ms2 = q [ i ][ "ms2" ], ms3 = q [ i ][ "ms3" ], tuning = q [ i ][ "tuning" ]})
end
return pojazdy
end
addEvent ( "pokazPojazdy:przechowalnia" , true )
addEventHandler ( "pokazPojazdy:przechowalnia" , resourceRoot , function()
triggerClientEvent ( source , "pokazPojazdy:przechowalni" , source , pokazpojazdy ())
end )
--[[
Autor : Malentas
]]
local zoom = 1.0
local baseX = 1440
local minZoom = 2
local screenW , screenH = guiGetScreenSize ()
local px , py = screenW / 1440 , screenH / 900
if screenW < baseX then
zoom = math . min ( minZoom , baseX / screenW )
end
local sx , sy = guiGetScreenSize ()
local pojazdy = {}
local przechowalnia = false
local informacje = false
local scx , scy = guiGetScreenSize ()
local myObject , myElement , guiWindow = nil , nil , nil
local myRotation = { 0 , 0 , 0 }
function mysz ( psx , psy , pssx , pssy , abx , aby )
if not isCursorShowing () then return end
cx , cy = getCursorPosition ()
cx , cy = cx * sx , cy * sy
if cx >= psx and cx <= psx + pssx and cy >= psy and cy <= psy + pssy then
return true , cx , cy
else
return false
end
end
function scale_x ( value )
local result = ( value / 1440 ) * sx
return result
end
function scale_y ( value )
local result = ( value / 900 ) * sy
return result
end
local f = dxCreateFont ( "cz.ttf" , 12 * px )
local width = scale_x ( 659 )
local height = scale_y ( 222 )
local scrollPos = 0
local scrollOffset = scale_y ( 39 )
local maxRender = dxCreateRenderTarget ( width , height , true )
function gui ()
dxDrawImage ( scale_x ( 4 ), scale_y ( 0 ), scale_x ( 492 ), scale_y ( 195 ), "grafiki/pasek_gUra.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( scale_x ( 63 ), scale_y ( 14 ), scale_x ( 367 ), scale_y ( 167 ), "grafiki/logo_ls_parking.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( scale_x ( 4 ), scale_y ( 158 ), scale_x ( 489 ), scale_y ( 273 ), "grafiki/podpaskiem.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( scale_x ( 452 ), scale_y ( 27 ), scale_x ( 16 ), scale_y ( 16 ), ":guieditor/images/cross.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxSetRenderTarget ( maxRender , true )
for i , v in ipairs ( pojazdy ) do
local offsetY = ( scale_y ( 39 ))*( i - 1 )
local offsetY2 = ( scale_y ( 78 ))*( i - 1 )
local scroll = scrollPos * scrollOffset
local scroll2 = ( scrollPos * scrollOffset ) * 2
local model = getVehicleNameFromModel ( v . model )
if mysz ( scale_x ( 21 ), ( scale_y ( 195 ) + offsetY ) - scroll , scale_x ( 457 ), scale_y ( 39 )) then
dxDrawImage ( scale_x ( 21 ), ( scale_y ( 0 ) + offsetY ) - scroll , scale_x ( 457 ), scale_y ( 39 ), "grafiki/pasek_zazna.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( scale_x ( 21 ), ( scale_y ( 0 ) + offsetY ) - scroll , scale_x ( 457 ), scale_y ( 39 ), "grafiki/pasek_nieza.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
dxDrawText ( "[" .. v . id .. "] " .. model , scale_x ( 21 ), ( scale_y (- 194 ) + offsetY2 ) - scroll2 , scale_x ( 478 ), scale_y ( 234 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
end
dxSetRenderTarget ( false )
dxDrawImage ( 0 , scale_y ( 190 ), width , height , maxRender )
end
function guiinfo ()
if vehicle_neon == 1 then
r = 255
g = 255
b = 255
elseif vehicle_neon == 2 then
r = 255
g = 0
b = 0
elseif vehicle_neon == 3 then
r = 0
g = 255
b = 0
elseif vehicle_neon == 4 then
r = 0
g = 0
b = 255
elseif vehicle_neon == 5 then
r = 255
g = 255
b = 0
elseif vehicle_neon == 6 then
r = 0
g = 255
b = 255
elseif vehicle_neon == 7 then
r = 255
g = 0
b = 255
end
local modules = {}
if vehicle_ms1 == 1 then
table . insert ( modules , "MS1" )
end
if vehicle_ms2 == 1 then
table . insert ( modules , "MS2" )
end
if vehicle_ms3 == 1 then
table . insert ( modules , "MS3" )
end
modules = table . concat ( modules , ", " )
if #modules < 1 then
modules = "brak"
end
dxDrawImage ( scale_x ( 478 ), scale_y (- 4 ), scale_x ( 774 ), scale_y ( 477 ), ":np-przechowalnia/grafiki/tlo_przecho.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( scale_x ( 818 ), scale_y ( 18 ), scale_x ( 81 ), scale_y ( 81 ), ":np-przechowalnia/grafiki/kolor.png" , 0 , 0 , 0 , tocolor ( vehicle_kolor [ 1 ], vehicle_kolor [ 2 ], vehicle_kolor [ 3 ], 255 ), false )
dxDrawImage ( scale_x ( 818 ), scale_y ( 84 ), scale_x ( 81 ), scale_y ( 81 ), ":np-przechowalnia/grafiki/kolor.png" , 0 , 0 , 0 , tocolor ( vehicle_kolor [ 4 ], vehicle_kolor [ 5 ], vehicle_kolor [ 6 ], 255 ), false )
dxDrawImage ( scale_x ( 818 ), scale_y ( 147 ), scale_x ( 81 ), scale_y ( 81 ), ":np-przechowalnia/grafiki/kolor.png" , 0 , 0 , 0 , tocolor ( vehicle_swiatla [ 1 ], vehicle_swiatla [ 2 ], vehicle_swiatla [ 3 ], 255 ), false )
if vehicle_neon ~= 0 then
dxDrawImage ( scale_x ( 818 ), scale_y ( 210 ), scale_x ( 81 ), scale_y ( 81 ), ":np-przechowalnia/grafiki/kolor.png" , 0 , 0 , 0 , tocolor ( r , g , b , 255 ), false )
end
dxDrawText ( "Kolor podstawowy" , scale_x ( 930 ), scale_y ( 18 ), scale_x ( 992 ), scale_y ( 99 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
dxDrawText ( "Kolor drugi" , scale_x ( 899 ), scale_y ( 84 ), scale_x ( 992 ), scale_y ( 165 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
dxDrawText ( "Kolor ?›wiate?‚" , scale_x ( 899 ), scale_y ( 147 ), scale_x ( 992 ), scale_y ( 228 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
if vehicle_neon ~= 0 then
dxDrawText ( "Kolor neonĂłw" , scale_x ( 899 ), scale_y ( 210 ), scale_x ( 992 ), scale_y ( 291 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
end
dxDrawText ( "Przebieg: " .. vehicle_przebieg .. "km\nPaliwo: " .. vehicle_paliwo .. "L/" .. vehicle_bak .. "L\nPojemno?›?‡ silnika: " .. vehicle_pojemnosc .. "dm3\nStan pojazdu: " ..( vehicle_stan / 10 ).. "%\nUlepszenia: " .. modules , scale_x ( 513 ), scale_y ( 291 ), scale_x ( 855 ), scale_y ( 456 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "left" , "top" , false , false , false , false , false )
dxDrawText ( " " , scale_x ( 889 ), scale_y ( 291 ), scale_x ( 1231 ), scale_y ( 456 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "left" , "top" , false , false , false , false , false )
if mysz ( scale_x ( 1065 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 )) then
dxDrawImage ( scale_x ( 1065 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 ), ":np-gui/grafiki/button_on.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( scale_x ( 1065 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 ), ":np-gui/grafiki/button_off.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if mysz ( scale_x ( 904 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 )) then
dxDrawImage ( scale_x ( 904 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 ), ":np-gui/grafiki/button_on.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( scale_x ( 904 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 ), ":np-gui/grafiki/button_off.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
dxDrawText ( "Wyci?…gnij" , scale_x ( 904 ), scale_y ( 388 ), scale_x ( 1047 ), scale_y ( 440 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
dxDrawText ( "Anuluj" , scale_x ( 1065 ), scale_y ( 388 ), scale_x ( 1208 ), scale_y ( 440 ), tocolor ( 255 , 255 , 255 , 255 ), 1.00 , f , "center" , "center" , false , false , false , false , false )
--if not myElement or not myObject then return end
-- local projPosX , projPosY = guiGetPosition ( guiWindow , true )
-- local projSizeX , projSizeY = guiGetSize ( guiWindow , true )
setVehicleColor ( myElement , vehicle_kolor [ 1 ], vehicle_kolor [ 2 ], vehicle_kolor [ 3 ])
-- exports . object_preview : setProjection ( myObject , projPosX , projPosY , projSizeX , projSizeY , true , true )
end
addEvent ( "pojazdy" , true )
addEventHandler ( "pojazdy" , root , function( cos )
if cos == true then
removeEventHandler ( "onClientRender" , root , gui )
showCursor ( false )
przechowalnia = false
showChat ( true )
if isElement ( myElement ) then
exports . object_preview : destroyObjectPreview ( myObject )
destroyElement ( myElement )
guiSetVisible ( guiWindow , false )
removeEventHandler ( "onClientRender" , root , guiinfo )
informacje = false
end
else
showCursor ( true , false )
addEventHandler ( "onClientRender" , root , gui )
triggerServerEvent ( "pokazPojazdy:przechowalnia" , localPlayer )
przechowalnia = true
showChat ( false )
end
end )
addEventHandler ( "onClientClick" , root , function( b , s )
if b ~= "state" and s ~= "down" then return end
for i , v in ipairs ( pojazdy ) do
local offsetY = ( scale_y ( 39 ))*( i - 1 )
local scroll = scrollPos * scrollOffset
if mysz ( scale_x ( 21 ), ( scale_y ( 195 ) + offsetY ) - scroll , scale_x ( 457 ), scale_y ( 39 )) and mysz ( scale_x ( 19 ), scale_y ( 190 ), scale_x ( 459 ), scale_y ( 222 )) and przechowalnia == true and informacje == false then
-- triggerServerEvent ( "wyjmij3" , resourceRoot , localPlayer , v . id )
-- showCursor ( false )
-- removeEventHandler ( "onClientRender" , root , gui )
addEventHandler ( "onClientRender" , root , guiinfo )
informacje = true
vehicle_model = v . model
vehicle_id = v . id
vehicle_kolor = split ( v . kolor , "," )
vehicle_swiatla = split ( v . swiatla , "," )
vehicle_paliwo = v . paliwo
vehicle_bak = v . bak
vehicle_przebieg = v . przebieg
vehicle_pojemnosc = v . pojemnosc
vehicle_stan = v . stan
vehicle_neon = v . neon
vehicle_ms1 = v . ms1
vehicle_ms2 = v . ms2
vehicle_ms3 = v . ms3
local x1 , y1 , z1 = getCameraMatrix ()
myElement = createVehicle ( v . model , x1 , y1 , z1 )
setVehicleColor ( myElement , 0 , 255 , 255 )
local tuning = split ( v . tuning , "," )
for i = 1 , #tuning do
addVehicleUpgrade ( myElement , tuning [ i ])
end
myObject = exports . object_preview : createObjectPreview ( myElement , 0 , 0 , 0 , 0.5 , 0.5 , 1 , 1 , true , true , true )
guiWindow = guiCreateWindow ( scale_x ( 530 ), scale_y ( 10 ), scale_x ( 336 ), scale_y ( 264 ), "Test area" , false , false )
guiSetAlpha ( guiWindow , 0 )
local projPosX , projPosY = guiGetPosition ( guiWindow , true )
local projSizeX , projSizeY = guiGetSize ( guiWindow , true )
exports . object_preview : setProjection ( myObject , projPosX , projPosY , projSizeX , projSizeY , true , true )
exports . object_preview : setRotation ( myObject , - 5 , 0 , 150 )
end
end
if mysz ( scale_x ( 904 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 )) and przechowalnia == true and informacje == true then
showCursor ( false )
removeEventHandler ( "onClientRender" , root , gui )
removeEventHandler ( "onClientRender" , root , guiinfo )
przechowalnia = false
triggerServerEvent ( "wyjmij3" , resourceRoot , localPlayer , vehicle_id )
exports . object_preview : destroyObjectPreview ( myObject )
destroyElement ( myElement )
guiSetVisible ( guiWindow , false )
informacje = false
showChat ( true )
elseif mysz ( scale_x ( 1065 ), scale_y ( 388 ), scale_x ( 143 ), scale_y ( 52 )) and przechowalnia == true and informacje == true then
removeEventHandler ( "onClientRender" , root , guiinfo )
exports . object_preview : destroyObjectPreview ( myObject )
destroyElement ( myElement )
guiSetVisible ( guiWindow , false )
informacje = false
elseif mysz ( scale_x ( 452 ), scale_y ( 27 ), scale_x ( 16 ), scale_y ( 16 )) and przechowalnia == true then
removeEventHandler ( "onClientRender" , root , gui )
przechowalnia = false
showCursor ( false )
showChat ( true )
if isElement ( myElement ) then
exports . object_preview : destroyObjectPreview ( myObject )
destroyElement ( myElement )
guiSetVisible ( guiWindow , false )
removeEventHandler ( "onClientRender" , root , guiinfo )
informacje = false
end
end
end )
addEvent ( "pokazPojazdy:przechowalni" , true )
addEventHandler ( "pokazPojazdy:przechowalni" , root , function( tabelka )
pojazdy = tabelka
end )
bindKey ( "mouse_wheel_up" , "down" , function()
if przechowalnia == true and mysz ( 54 * px , 164 * py , 323 * px , 397 * py ) then
if scrollPos > 0 then
scrollPos = scrollPos - 1
end
end
end )
bindKey ( "mouse_wheel_down" , "down" , function()
if przechowalnia == true and mysz ( 54 * px , 164 * py , 323 * px , 397 * py ) then
scrollPos = scrollPos + 1
end
end )
--[[
addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ()), function()
local x1 , y1 , z1 = getCameraMatrix ()
myElement = createVehicle ( 411 , x1 , y1 , z1 )
setVehicleColor ( myElement , 0 , 255 , 255 )
myObject = exports . object_preview : createObjectPreview ( myElement , 0 , 0 , 0 , 0.5 , 0.5 , 1 , 1 , true , true , true )
guiWindow = guiCreateWindow ( 410 * px , 58 * py , 282 * px , 282 * py , "Test area" , false , false )
guiSetAlpha ( guiWindow , 0 )
local projPosX , projPosY = guiGetPosition ( guiWindow , true )
local projSizeX , projSizeY = guiGetSize ( guiWindow , true )
exports . object_preview : setProjection ( myObject , projPosX , projPosY , projSizeX , projSizeY , true , true )
exports . object_preview : setRotation ( myObject , - 15 , 0 , 210 )
end )
]]
--[[
addEventHandler ( "onClientPreRender" , root , function()
if not myElement or not myObject then return end
local projPosX , projPosY = guiGetPosition ( guiWindow , true )
local projSizeX , projSizeY = guiGetSize ( guiWindow , true )
setVehicleColor ( myElement , 0 , 255 , 255 )
exports . object_preview : setProjection ( myObject , projPosX , projPosY , projSizeX , projSizeY , true , true )
end , true , "high" )
]]
addEventHandler ( "onClientResourceStop" , getResourceRootElement ( getThisResource ()), function()
exports . object_preview : destroyObjectPreview ( myObject )
end
[ Dodano : 2018-07-27, 00:47 ]
Prosze.
[ Dodano : 2018-07-27, 00:51 ]
Damian2511 ,
Wysłany: 2018-07-27, 03:33
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Sprawd? czy ci si? auta nie zduplikowa?y w bazie danych ;3
Wysłany: 2018-07-27, 13:31
FeniksTV320
Wiek: 24 Na forum: 2911 dni Posty: 18
Nick w MP: FeniksTV320
To samo usunelem wszystkie pojazdy z bazy danych i dalej respij jednego w przecho ls, a pozostale 2 w lv przecho.
Tagi: lipa :: przechowalnia
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: