koko7864
PSEUDO SKRYPTER
Wiek: 22 Na forum: 3230 dni Posty: 41
Nick w MP: Mar0x
Piwa : 1
Witam chce si? zalogowa? ale nie ma nigdzie linijki do wpisania loginu i hasla
dam pare kod?w bo nw jaki do tego s?u?y if getElementData ( localPlayer , "player:sid" ) then return end
local root = getRootElement ()
local resourceRoot = getResourceRootElement ( getThisResource ())
local screenWidth , screenHeight = guiGetScreenSize ()
local screenW , screenH = guiGetScreenSize ()
local blurStrength = 20
local myScreenSource = dxCreateScreenSource ( screenWidth , screenHeight )
blurShader , blurTec = dxCreateShader ( "shaders/BlurShader.fx" )
function renderblur ()
if blur == true then
dxUpdateScreenSource ( myScreenSource )
dxSetShaderValue ( blurShader , "ScreenSource" , myScreenSource );
dxSetShaderValue ( blurShader , "BlurStrength" , blurStrength );
dxSetShaderValue ( blurShader , "UVSize" , screenWidth , screenHeight );
dxDrawImage ( 0 , 0 , screenWidth , screenHeight , blurShader )
end
end
addEventHandler ( "onClientRender" , root , renderblur )
addEventHandler ( "onClientResourceStop" , resourceRoot ,
function()
if blurShader and isElement ( blurShader ) then
destroyElement ( blurShader )
blurShader = nil
end
end )
x , y = 2513.58 , 1282.80 -- my width
intro_step = math . random ( 0 , 850 )
local sx , sy = guiGetScreenSize ()
local data ={ showed = nil , button ={}, info = nil , misc = nil , }
function isMouseIn ( 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
local dist = 100
local angler = 0
function getPointFromDistanceRotation ( x , y , dist , angler )
local a = math . rad ( 90 - angler )
local dx = math . cos ( a ) * dist ;
local dy = math . sin ( a ) * dist ;
return x + dx , y + dy ;
end
local tick = getTickCount ();
function renderLoginBox ()
local h , h2 , h3 = interpolateBetween ( screenW * - 0.5 , screenW * - 0.3 , screenW * - 0.25 , screenW * 0 , screenH * 0.4361 , screenH * 0.5824 , ( getTickCount ()- tick )/ 1500 , "OutBack" );
exports . editbox : editboxSetPosition ( "LOGIN" , screenW * 0.4255 , h2 );
exports . editbox : editboxSetPosition ( "HASLO" , screenW * 0.4255 , h3 );
dxDrawImage ( screenW * 0.0000 , screenW * 0 , screenW * 1.0000 , screenH * 1.0000 , "img/bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "img/logowanie.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zalogujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
if isMouseIn ( screenW * 0.2380 , screenH * 0.4519 , screenW * 0.1016 , screenH * 0.1648 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "img/zalogujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "img/zalogujoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if isMouseIn ( screenW * 0.6823 , screenH * 0.4519 , screenW * 0.1016 , screenH * 0.1648 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "img/zarejestrujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "img/zarejestrujoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if data . info then dxDrawText ( data . info , screenW * 0.4057 , screenH * 0.5056 , screenW * 0.6396 , screenH * 0.5435 , tocolor ( 255 , 0 , 0 , 255 ), 1.00 , "default-bold" , "center" , "center" , false ) end
dxDrawRectangle ( screenW * 0.4255 , screenH * 0.3676 , screenW * 0.1714 , screenH * 0.0472 , tocolor ( 255 , 255 , 255 , 0 ), false )
dxDrawRectangle ( screenW * 0.4255 , screenH * 0.5056 , screenW * 0.1714 , screenH * 0.0472 , tocolor ( 255 , 255 , 255 , 0 ), false )
local fft = getSoundFFTData ( data . misc , 2048 , 2 );
dxDrawImage ( 0 , 0 , screenW , screenH , "img/paski.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , fft [ 1 ]* 256 ), false );
end
addEventHandler ( "onClientClick" , root , function( btn , state )
if btn == "left" and state == "down" then
if isMouseIn ( screenW * 0.2380 , screenH * 0.4519 , screenW * 0.1016 , screenH * 0.1648 ) and data . showed then
local login = exports . editbox : editboxGetText ( "LOGIN" );
local pass = exports . editbox : editboxGetText ( "HASLO" );
if string . len ( login ) < 2 or string . len ( pass ) < 2 then
data . info = "Nale?y wype?ni? wszystkie pola."
return
end
triggerServerEvent ( "logging:checkAccount" , resourceRoot , login , pass )
end
if isMouseIn ( screenW * 0.6823 , screenH * 0.4519 , screenW * 0.1016 , screenH * 0.1648 ) and data . showed then
local login = exports . editbox : editboxGetText ( "LOGIN" );
local pass = exports . editbox : editboxGetText ( "HASLO" );
if string . len ( login ) > 22 or string . len ( pass ) > 22 and string . len ( login ) < 3 or string . len ( pass ) < 3 then
data . info = "Login i has?o powinno zawiera? od 3 do 22 znak?w."
return
end
triggerServerEvent ( "logging:newAccount" , resourceRoot , login , pass )
end
end
end )
addEvent ( "logging:result" , true )
addEventHandler ( "logging:result" , resourceRoot , function( value , info )
if not info then info = "" end
if value then
data . showed = false
showZones ( data . misc )
exports . editbox : destroyEditbox ( "LOGIN" )
exports . editbox : destroyEditbox ( "HASLO" )
removeEventHandler ( "onClientRender" , root , renderLoginBox )
else
data . info = tostring ( info )
setTimer (function() data . info = nil end , 3000 , 1 )
end
end )
addEventHandler ( "onClientResourceStart" , resourceRoot , function()
showChat ( false )
showCursor ( true )
fadeCamera ( true )
data . showed = true
setElementAlpha ( localPlayer , 0 )
data . misc = playSound ( "misc/intro.mp3" , true )
showPlayerHudComponent ( "radar" , false )
setSoundVolume ( data . misc , 1.0 )
showPlayerHudComponent ( "all" , false )
guiSetInputMode ( "no_binds_when_editing" )
setElementData ( localPlayer , "status" , "Loguje si?" )
addEventHandler ( "onClientRender" , root , renderLoginBox )
exports . editbox : createEditbox ( "LOGIN" , "Wprowad? nick..." , screenW * 0.4255 , screenH * 0.4361 , screenW * 0.2080 , screenH * 0.0407 )
exports . editbox : createEditbox ( "HASLO" , "Wprowad? has?o..." , screenW * 0.4255 , screenH * 0.5824 , screenW * 0.2080 , screenH * 0.0407 , true )
exports . editbox : editboxSetText ( "LOGIN" , getPlayerName ( localPlayer ));
end )
addEventHandler ( "onClientResourceStop" , resourceRoot , function()
exports . editbox : destroyEditbox ( "LOGIN" )
exports . editbox : destroyEditbox ( "HASLO" )
end );
if getElementData ( localPlayer , "player:sid" ) then return end
local root = getRootElement ()
local resourceRoot = getResourceRootElement ( getThisResource ())
local screenWidth , screenHeight = guiGetScreenSize ()
local screenW , screenH = guiGetScreenSize ()
local blurStrength = 20
local myScreenSource = dxCreateScreenSource ( screenWidth , screenHeight )
blurShader , blurTec = dxCreateShader ( "shaders/BlurShader.fx" )
function renderblur ()
if blur == true then
dxUpdateScreenSource ( myScreenSource )
dxSetShaderValue ( blurShader , "ScreenSource" , myScreenSource );
dxSetShaderValue ( blurShader , "BlurStrength" , blurStrength );
dxSetShaderValue ( blurShader , "UVSize" , screenWidth , screenHeight );
dxDrawImage ( 0 , 0 , screenWidth , screenHeight , blurShader )
end
end
addEventHandler ( "onClientRender" , root , renderblur )
addEventHandler ( "onClientResourceStop" , resourceRoot ,
function()
if blurShader and isElement ( blurShader ) then
destroyElement ( blurShader )
blurShader = nil
end
end )
x , y = 2513.58 , 1282.80 -- my width
intro_step = math . random ( 0 , 850 )
local sx , sy = guiGetScreenSize ()
local data ={ showed = nil , button ={}, info = nil , misc = nil , }
function isMouseIn ( 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
local dist = 100
local angler = 0
function getPointFromDistanceRotation ( x , y , dist , angler )
local a = math . rad ( 90 - angler )
local dx = math . cos ( a ) * dist ;
local dy = math . sin ( a ) * dist ;
return x + dx , y + dy ;
end
local tick = getTickCount ();
function renderLoginBox ()
local h , h2 , h3 = interpolateBetween ( screenW * - 0.5 , - 0.54 , - 0.46 , screenW * 0 , 0.38 , 0.50 , ( getTickCount ()- tick )/ 3000 , "Linear" );
guiSetPosition ( data . button [ 1 ], 0.43 , h2 , true );
guiSetPosition ( data . button [ 2 ], 0.43 , h3 , true );
dxDrawImage ( screenW * 0.0000 , screenW * 0 , screenW * 1.0000 , screenH * 1.0000 , "bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "logowanie.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zalogujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
if isMouseIn ( screenW * 0.3698 , screenH * 0.6194 , screenW * 0.0734 , screenH * 0.1046 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zalogujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zalogujoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if isMouseIn ( screenW * 0.5641 , screenH * 0.6204 , screenW * 0.0740 , screenH * 0.1046 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zarejestrujon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "zarejestrujoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if data . info then dxDrawText ( data . info , screenW * 0.3870 , screenH * 0.4361 , screenW * 0.6286 , screenH * 0.4815 , tocolor ( 255 , 0 , 0 , 255 ), 1.00 , "default-bold" , "center" , "center" , false ) end
dxDrawRectangle ( screenW * 0.2854 , screenH * 0.3824 , screenW * 0.0750 , screenH * 0.1315 , tocolor ( 255 , 255 , 255 , 0 ), false )
dxDrawRectangle ( screenW * 0.6422 , screenH * 0.3824 , screenW * 0.0750 , screenH * 0.1315 , tocolor ( 255 , 255 , 255 , 0 ), false )
local fft = getSoundFFTData ( data . misc , 2048 , 2 );
dxDrawImage ( 0 , 0 , screenW , screenH , "paski.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , fft [ 1 ]* 256 ), false );
end
addEventHandler ( "onClientClick" , root , function( btn , state )
if btn == "left" and state == "down" then
if isMouseIn ( screenW * 0.3698 , screenH * 0.6194 , screenW * 0.0734 , screenH * 0.1046 ) and data . showed then
local login = guiGetText ( data . button [ 1 ])
local pass = guiGetText ( data . button [ 2 ])
if string . len ( login ) < 2 or string . len ( pass ) < 2 then
data . info = "Nale?y wype?ni? wszystkie pola."
return
end
triggerServerEvent ( "logging:checkAccount" , resourceRoot , login , pass )
end
if isMouseIn ( screenW * 0.5641 , screenH * 0.6204 , screenW * 0.0740 , screenH * 0.1046 ) and data . showed then
local login = guiGetText ( data . button [ 1 ])
local pass = guiGetText ( data . button [ 2 ])
if string . len ( login ) > 22 or string . len ( pass ) > 22 and string . len ( login ) < 3 or string . len ( pass ) < 3 then
data . info = "Login i has?o powinno zawiera? od 3 do 22 znak?w."
return
end
triggerServerEvent ( "logging:newAccount" , resourceRoot , login , pass )
end
end
end )
addEvent ( "logging:result" , true )
addEventHandler ( "logging:result" , resourceRoot , function( value , info )
if not info then info = "" end
if value then
data . showed = false
showZones ( data . misc )
-- Usuwamy elementy
destroyElement ( data . button [ 1 ])
destroyElement ( data . button [ 2 ])
removeEventHandler ( "onClientRender" , root , renderLoginBox )
else
data . info = tostring ( info )
setTimer (function() data . info = nil end , 3000 , 1 )
end
end )
addEventHandler ( "onClientResourceStart" , resourceRoot , function()
showChat ( false )
showCursor ( true )
fadeCamera ( true )
data . showed = true
setElementAlpha ( localPlayer , 0 )
data . misc = playSound ( "misc/intro.mp3" , true )
showPlayerHudComponent ( "radar" , false )
setSoundVolume ( data . misc , 1.0 )
showPlayerHudComponent ( "all" , false )
guiSetInputMode ( "no_binds_when_editing" )
setElementData ( localPlayer , "status" , "Loguje si?" )
-- setElementData ( localPlayer , "player:logged" , false )
addEventHandler ( "onClientRender" , root , renderLoginBox )
local nick = getPlayerName ( localPlayer )
data . button [ 1 ]= guiCreateEdit ( 0.42 , 0.38 , 0.18 , 0.05 , nick , true )
data . button [ 2 ]= guiCreateEdit ( 0.42 , 0.50 , 0.18 , 0.05 , "" , true )
guiEditSetMasked ( data . button [ 2 ], true )
end )
--[[
Resource : OURGme v2
Developers : Split < split . programista @ gmail . com >
You have no right to use this code without my permission .
( c ) 2015 < split . programista @ gmail . com >. All rights reserved .
]]
-- Pozycja Krecacej Kamery : - 1956.66 , 883.34 , 69.31
x , y = 36.63 , 82.19 -- my width
intro_step = math . random ( 0 , 850 )
local sx , sy = guiGetScreenSize ()
local screenW , screenH = guiGetScreenSize ()
local data ={ showed = nil , button ={}, info = nil , misc = nil , }
function isMouseIn ( 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
local tick = getTickCount ();
function renderZoneBox ()
local h , h2 , h3 = interpolateBetween ( screenW * - 0.5 , - 0.54 , - 0.46 , screenW * 0 , 0.38 , 0.50 , ( getTickCount ()- tick )/ 3000 , "Linear" );
-- guiSetPosition ( data . button [ 1 ], 0.43 , h2 , true );
-- guiSetPosition ( data . button [ 2 ], 0.43 , h3 , true );
dxDrawImage ( screenW * 0.0000 , screenW * 0 , screenW * 1.0000 , screenH * 1.0000 , "bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
if isMouseIn ( screenW * 0.2182 , screenH * 0.3157 , screenW * 0.1740 , screenH * 0.2667 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "urzadon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "urzadoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if isMouseIn ( screenW * 0.4318 , screenH * 0.3185 , screenW * 0.1724 , screenH * 0.2648 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "spawnon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "spawnoff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
if isMouseIn ( screenW * 0.6438 , screenH * 0.3176 , screenW * 0.1724 , screenH * 0.2648 ) then
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "przechoon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
else
dxDrawImage ( screenW * 0.0000 , h , screenW * 1.0000 , screenH * 0.9597 , "przechooff.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
--if not isMouseIn ( sx * 10 / 1024 , sy * 54 / 768 , sx * 225 / 1024 , sy * 92 / 768 ) then dxDrawRectangle ( sx * 10 / 1024 , sy * 54 / 768 , sx * 225 / 1024 , sy * 92 / 768 , tocolor ( 15 , 15 , 15 , 235 ), false )
--else dxDrawRectangle ( sx * 10 / 1024 , sy * 54 / 768 , sx * 225 / 1024 , sy * 92 / 768 , tocolor ( 142 , 0 , 203 , 235 ), false ) end
--if not isMouseIn ( sx * 10 / 1024 , sy * 198 / 768 , sx * 225 / 1024 , sy * 92 / 768 ) then dxDrawRectangle ( sx * 10 / 1024 , sy * 198 / 768 , sx * 225 / 1024 , sy * 92 / 768 , tocolor ( 15 , 15 , 15 , 235 ), false )
--else dxDrawRectangle ( sx * 10 / 1024 , sy * 198 / 768 , sx * 225 / 1024 , sy * 92 / 768 , tocolor ( 142 , 0 , 203 , 235 ), false ) end
-- dxDrawText ( "San Fierro" , sx * 10 / 1024 , sy * 54 / 768 , sx * 225 / 1024 + sx * 10 / 1024 , sy * 92 / 768 + sy * 54 / 768 , white , 2 , "default-bold" , "center" , "center" , false )
-- dxDrawText ( "Przechowywalnia" , sx * 10 / 1024 , sy * 198 / 768 , sx * 225 / 1024 + sx * 10 / 1024 , sy * 92 / 768 + sy * 198 / 768 , white , 2 , "default-bold" , "center" , "center" , false )
local domek = getElementData ( localPlayer , "player:house" )
if domek then
dxDrawText ( "Mieszkanie" , screenW * 0.1328 , screenH * 0.1083 , screenW * 0.1208 , screenH * 0.1120 , white , 2 , "default-bold" , "center" , "center" , false )
if not isMouseIn ( screenW * 0.1635 , screenH * 0.2574 , screenW * 0.1036 , screenH * 0.1750 ) then dxDrawRectangle ( screenW * 0.1635 , screenH * 0.2574 , screenW * 0.1036 , screenH * 0.1750 , tocolor ( 255 , 255 , 255 , 255 ), false )
else dxDrawRectangle ( screenW * 0.1635 , screenH * 0.2574 , screenW * 0.1036 , screenH * 0.1750 , tocolor ( 255 , 255 , 255 , 255 ), false ) end
end
-- local zone1 = math . sin ( intro_step / 500 )* 9000
---- local zone2 = math . cos ( intro_step / 500 )* 9000
-- setCameraMatrix ( 2019.56 , 1343.03 , 54.00 , zone1 , zone2 , 2 )
-- intro_step = intro_step - 1.5
local fft = getSoundFFTData ( data . misc , 2048 , 2 );
dxDrawImage ( 0 , 0 , screenW , screenH , "paski.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , fft [ 1 ]* 256 ), false );
end
addEventHandler ( "onClientClick" , root , function( btn , state )
if btn == "left" and state == "down" then
if isMouseIn ( screenW * 0.2182 , screenH * 0.3157 , screenW * 0.1740 , screenH * 0.2667 ) and data . showed then
setElementData ( localPlayer , "player:spawn" ,{ 1481.17 ,- 1757.63 , 17.53 + 0.1 })
closeZones ()
end
if isMouseIn ( screenW * 0.4318 , screenH * 0.3185 , screenW * 0.1724 , screenH * 0.2648 ) and data . showed then
setElementData ( localPlayer , "player:spawn" ,{- 1969.98 , 616.61 , 35.17 + 0.1 })
closeZones ()
end
if isMouseIn ( screenW * 0.6438 , screenH * 0.3176 , screenW * 0.1724 , screenH * 0.2648 ) and data . showed then
setElementData ( localPlayer , "player:spawn" ,{- 1969.98 , 616.61 , 35.17 + 0.1 })
closeZones ()
end
if isMouseIn ( screenW * 0.1635 , screenH * 0.2574 , screenW * 0.1036 , screenH * 0.1750 ) then
local domek = getElementData ( localPlayer , "player:house" )
if not domek then
setElementData ( localPlayer , "player:spawn" ,{ 387.31 , - 1521.30 , 32.32 + 0.1 })
outputChatBox ( "* Nie posiadasz wykupionego domku. Zostajesz teleportowany na spawna!" )
end
closeZones ()
end
end
end )
function closeZones ()
showChat ( true )
showCursor ( false )
fadeCamera ( false )
setElementAlpha ( localPlayer , 255 )
setElementData ( localPlayer , "status" , "Zalogowany(a)" )
stopSound ( data . misc )
showPlayerHudComponent ( "all" , false )
showPlayerHudComponent ( "radar" , true )
showPlayerHudComponent ( "crosshair" , true )
showPlayerHudComponent ( "weapon" , true )
showPlayerHudComponent ( "radar" , true )
showPlayerHudComponent ( "health" , true )
showPlayerHudComponent ( "breath" , true )
showPlayerHudComponent ( "clock" , true )
showPlayerHudComponent ( "ammo" , true )
data . showed = false
destroyElement ( blurShader )
-- Usuwamy elementy
setElementData ( localPlayer , 'player:sid' , ( getElementData ( localPlayer , 'new:sid' ) or 0 ))
setElementData ( localPlayer , 'new:sid' , false )
triggerServerEvent ( "core:spawnPlayer" , localPlayer )
setTimer ( triggerEvent , 250 , 1 , "gui:start" , localPlayer )
removeEventHandler ( "onClientRender" , root , renderZoneBox )
end
function showZones ( misc )
data . misc = misc
data . showed = true
showPlayerHudComponent ( "all" , false )
guiSetInputMode ( "no_binds_when_editing" )
addEventHandler ( "onClientRender" , root , renderZoneBox )
end