Wysłany: 2016-06-11, 10:54
sasik12
Wiek: 26 Na forum: 3763 dni Posty: 182
Piwa : 7
Witam spo?eczno?? gtao . Mam do was pytanko dlaczego gui si? nie pojawia po wejsciu w pickup ?
Kod :
C-SIDE
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
poli = guiCreateWindow ( 922 , 381 , 395 , 476 , "Panel Policji" , false )
guiWindowSetSizable ( poli , false )
guiSetProperty ( poli , "CaptionColour" , "FF0BFD00" )
gridlist [ 1 ] = guiCreateGridList ( 45 , 48 , 137 , 144 , false , poli )
guiGridListAddColumn ( gridlist [ 1 ], "Skin" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 1 ])
end
guiGridListSetItemText ( gridlist [ 1 ], 0 , 1 , "Skin 1" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 0 , 1 , 59 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 1 , 1 , "Skin 2" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 2 , 1 , "Skin 3" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 3 , 1 , "Skin 4" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 1 ] = guiCreateButton ( 192 , 137 , 183 , 86 , "We? Bro?/Przedmiot" , false , poli )
guiSetFont ( button [ 1 ], "default-bold-small" )
guiSetProperty ( button [ 1 ], "NormalTextColour" , "FF05FD00" )
button [ 2 ] = guiCreateButton ( 192 , 263 , 181 , 85 , "Zaloguj" , false , poli )
guiSetFont ( button [ 2 ], "default-bold-small" )
guiSetProperty ( button [ 2 ], "NormalTextColour" , "FF0BFD00" )
gridlist [ 2 ] = guiCreateGridList ( 30 , 289 , 139 , 161 , false , poli )
guiGridListAddColumn ( gridlist [ 2 ], "Bronie/Przedmioty" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 2 ])
end
guiGridListSetItemText ( gridlist [ 2 ], 0 , 1 , "Bron 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 0 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 1 , 1 , "Bron 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 2 , 1 , "Przedmiot 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 3 , 1 , "Przedmiot 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 3 ] = guiCreateButton ( 219 , 48 , 136 , 54 , "Zmie? Skin" , false , poli )
guiSetFont ( button [ 3 ], "default-bold-small" )
guiSetProperty ( button [ 3 ], "NormalTextColour" , "FF0BFD00" )
button [ 4 ] = guiCreateButton ( 238 , 422 , 127 , 32 , "Zamknij Okno" , false , poli )
guiSetFont ( button [ 4 ], "default-bold-small" )
guiSetProperty ( button [ 4 ], "NormalTextColour" , "FFFC0000" )
function ustawskin_poli ()
if source == button [ 3 ] then
local row , col = guiGridListGetSelectedItem ( gridlist [ 1 ] )
local name = guiGridListGetItemText ( gridlist [ 1 ], row , col )
local item = guiGridListGetSelectedItem ( gridlist [ 1 ])
if item >= 0 then
if name == "Skin 1" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 280 )
else
if name == "Skin 2" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 281 )
else
if name == "Skin 3" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 282 )
else
if name == "Skin 4" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 283 )
end
end
end
end
end
end
end
addEventHandler ( "onClientGUIClick" , button [ 3 ], ustawskin_poli )
function zamknij_poli ()
if source == button [ 4 ] then
guiSetVisible ( poli , false )
showCursor ( false )
end
end
addEventHandler ( "onClientGUIClick" , button [ 4 ], zamknij_poli )
function pokazpanel_poli ()
guiGridListSetSelectedItem ( gridlist [ 1 ], 0 , 1 )
guiSetVisible ( poli , true )
showCursor ( true )
end
addEvent ( "OpenPoliSzafki" , true )
addEventHandler ( "OpenPoliSzafki" , getResourceRootElement ( getThisResource ()), pokazpanel_poli )
function zalogujdo_poli ()
if source == button [ 2 ] then
triggerServerEvent ( "onTeamPoli" , getLocalPlayer (), "" )
end
end
addEventHandler ( "onClientGUIClick" , button [ 2 ], zalogujdo_poli )
S-SIDE
myMarker_poli1 = createPickup ( - 1564 , 373 , 7 , 3 , 1275 , 100 )
addEventHandler ( "onResourceStart" , getRootElement (), onresourcestartapoli )
function setSkinPoli ( skin )
setPedSkin ( source , skin )
end
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli )
function MarkerHitPoli ( thePlayer )
if getElementType ( thePlayer ) == "player" then
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( 'Policja' ) ) then
triggerClientEvent ( thePlayer , "OpenPoliSzafki" , getRootElement ())
end
end
end
addEventHandler ( "onPickupHit" , myMarker_poli1 , MarkerHitPoli )
Dzi?ki wszystkim za pomoc
Wysłany: 2016-06-11, 11:19
maciek3286
LUA Developer
Wiek: 26 Na forum: 5201 dni Posty: 230
Nick w MP: maciek00
Piwa : 3207
Jakies bledy w db?
Podpis
"Ludzie będą zawsze dla ciebie źli, jeżeli konieczność nie zmusi ich do tego, by byli dobrzy" ~~ Niccolò Machiavelli
Wysłany: 2016-06-11, 12:15
Emm
***** ***
Wiek: 32 Na forum: 3880 dni Posty: 3191
Nick w MP: Emm
Piwa : 6162
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
W c-side podmie? to:
function pokazpanel_poli ( thePlayer )
if getLocalPlayer () ~= thePlayer then return end
guiGridListSetSelectedItem ( gridlist [ 1 ], 0 , 1 )
guiSetVisible ( poli , true )
showCursor ( true )
end
addEvent ( "OpenPoliSzafki" , true )
addEventHandler ( "OpenPoliSzafki" , root , pokazpanel_poli )
W s-side podmie? to:
function MarkerHitPoli ( thePlayer )
if source == myMarker_poli1 then
if getElementType ( thePlayer ) == "player" then
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( 'Policja' ) ) then
triggerClientEvent ( "OpenPoliSzafki" , root , thePlayer )
end
end
end
end
addEventHandler ( "onPickupHit" , root , MarkerHitPoli )
Podpis
Użytkownik : 20.10.2015r
GTAO Member : 06.03.2016r
Support-Team : 20.01.2016r
Moderator : 30.03.2016r
Mod-Team : 08.10.2016r
Vice Admin : 04.05.2018r
Administrator : 03.05.2022r
[you]
! Koniecznie zapoznaj się z
regulaminem forum .
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również
regulaminy działów , w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez
Administrację , przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w
tym dziale .
Najważniejsze informacje od
Administracji możesz przeczytać
tutaj oraz
tutaj .
Wysłany: 2016-06-12, 09:57
sasik12
Wiek: 26 Na forum: 3763 dni Posty: 182
Piwa : 7
Dzi?ki leci piwko
[ Dodano : 2016-06-12, 10:23 ]
Dalej nie dzia?a . Kolejny problem ...
ERROR : Server tiggered clientside event OpenPoliSzafki, but event is not added clientside
Co? nie tak z tiggerem.
Podpis
Uczeń LUA . Mapper MTA.
Wysłany: 2016-06-12, 14:19
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
M?g?by? pokaza? pe?ny kod podmieniony? C-SIDE oraz S-SIDE
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2016-06-13, 08:43
sasik12
Wiek: 26 Na forum: 3763 dni Posty: 182
Piwa : 7
Prosz? .
C-SIDE
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
poli = guiCreateWindow ( 922 , 381 , 395 , 476 , "Panel Policji" , false )
guiWindowSetSizable ( poli , false )
guiSetProperty ( poli , "CaptionColour" , "FF0BFD00" )
gridlist [ 1 ] = guiCreateGridList ( 45 , 48 , 137 , 144 , false , poli )
guiGridListAddColumn ( gridlist [ 1 ], "Skin" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 1 ])
end
guiGridListSetItemText ( gridlist [ 1 ], 0 , 1 , "Skin 1" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 0 , 1 , 59 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 1 , 1 , "Skin 2" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 2 , 1 , "Skin 3" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 3 , 1 , "Skin 4" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 1 ] = guiCreateButton ( 192 , 137 , 183 , 86 , "We? Bro?/Przedmiot" , false , poli )
guiSetFont ( button [ 1 ], "default-bold-small" )
guiSetProperty ( button [ 1 ], "NormalTextColour" , "FF05FD00" )
button [ 2 ] = guiCreateButton ( 192 , 263 , 181 , 85 , "Zaloguj" , false , poli )
guiSetFont ( button [ 2 ], "default-bold-small" )
guiSetProperty ( button [ 2 ], "NormalTextColour" , "FF0BFD00" )
gridlist [ 2 ] = guiCreateGridList ( 30 , 289 , 139 , 161 , false , poli )
guiGridListAddColumn ( gridlist [ 2 ], "Bronie/Przedmioty" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 2 ])
end
guiGridListSetItemText ( gridlist [ 2 ], 0 , 1 , "Bron 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 0 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 1 , 1 , "Bron 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 2 , 1 , "Przedmiot 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 3 , 1 , "Przedmiot 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 3 ] = guiCreateButton ( 219 , 48 , 136 , 54 , "Zmie? Skin" , false , poli )
guiSetFont ( button [ 3 ], "default-bold-small" )
guiSetProperty ( button [ 3 ], "NormalTextColour" , "FF0BFD00" )
button [ 4 ] = guiCreateButton ( 238 , 422 , 127 , 32 , "Zamknij Okno" , false , poli )
guiSetFont ( button [ 4 ], "default-bold-small" )
guiSetProperty ( button [ 4 ], "NormalTextColour" , "FFFC0000" )
function ustawskin_poli ()
if source == button [ 3 ] then
local row , col = guiGridListGetSelectedItem ( gridlist [ 1 ] )
local name = guiGridListGetItemText ( gridlist [ 1 ], row , col )
local item = guiGridListGetSelectedItem ( gridlist [ 1 ])
if item >= 0 then
if name == "Skin 1" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 280 )
else
if name == "Skin 2" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 281 )
else
if name == "Skin 3" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 282 )
else
if name == "Skin 4" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 283 )
end
end
end
end
end
end
end
addEventHandler ( "onClientGUIClick" , button [ 3 ], ustawskin_poli )
function zamknij_poli ()
if source == button [ 4 ] then
guiSetVisible ( poli , false )
showCursor ( false )
end
end
addEventHandler ( "onClientGUIClick" , button [ 4 ], zamknij_poli )
function pokazpanel_poli ( thePlayer )
if getLocalPlayer () ~= thePlayer then return end
guiGridListSetSelectedItem ( gridlist [ 1 ], 0 , 1 )
guiSetVisible ( poli , true )
showCursor ( true )
end
addEvent ( "OpenPoliSzafki" , true )
addEventHandler ( "OpenPoliSzafki" , root , pokazpanel_poli )
function zalogujdo_poli ()
if source == button [ 2 ] then
triggerServerEvent ( "onTeamPoli" , getLocalPlayer (), "" )
end
end
addEventHandler ( "onClientGUIClick" , button [ 2 ], zalogujdo_poli )
S-SIDE
myMarker_poli1 = createPickup ( - 1564 , 373 , 7 , 3 , 1275 , 100 )
addEventHandler ( "onResourceStart" , getRootElement (), onresourcestartapoli )
function setSkinPoli ( skin )
setPedSkin ( source , skin )
end
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli )
function MarkerHitPoli ( thePlayer )
if source == myMarker_poli1 then
if getElementType ( thePlayer ) == "player" then
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( 'Policja' ) ) then
triggerClientEvent ( "OpenPoliSzafki" , root , thePlayer )
end
end
end
end
addEventHandler ( "onPickupHit" , root , MarkerHitPoli )
[ Dodano : 2016-06-13, 08:43 ]
Prosz? .
C-SIDE
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
poli = guiCreateWindow ( 922 , 381 , 395 , 476 , "Panel Policji" , false )
guiWindowSetSizable ( poli , false )
guiSetProperty ( poli , "CaptionColour" , "FF0BFD00" )
gridlist [ 1 ] = guiCreateGridList ( 45 , 48 , 137 , 144 , false , poli )
guiGridListAddColumn ( gridlist [ 1 ], "Skin" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 1 ])
end
guiGridListSetItemText ( gridlist [ 1 ], 0 , 1 , "Skin 1" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 0 , 1 , 59 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 1 , 1 , "Skin 2" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 2 , 1 , "Skin 3" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 1 ], 3 , 1 , "Skin 4" , false , false )
guiGridListSetItemColor ( gridlist [ 1 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 1 ] = guiCreateButton ( 192 , 137 , 183 , 86 , "We? Bro?/Przedmiot" , false , poli )
guiSetFont ( button [ 1 ], "default-bold-small" )
guiSetProperty ( button [ 1 ], "NormalTextColour" , "FF05FD00" )
button [ 2 ] = guiCreateButton ( 192 , 263 , 181 , 85 , "Zaloguj" , false , poli )
guiSetFont ( button [ 2 ], "default-bold-small" )
guiSetProperty ( button [ 2 ], "NormalTextColour" , "FF0BFD00" )
gridlist [ 2 ] = guiCreateGridList ( 30 , 289 , 139 , 161 , false , poli )
guiGridListAddColumn ( gridlist [ 2 ], "Bronie/Przedmioty" , 0.9 )
for i = 1 , 4 do
guiGridListAddRow ( gridlist [ 2 ])
end
guiGridListSetItemText ( gridlist [ 2 ], 0 , 1 , "Bron 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 0 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 1 , 1 , "Bron 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 1 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 2 , 1 , "Przedmiot 1" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 2 , 1 , 11 , 253 , 0 , 255 )
guiGridListSetItemText ( gridlist [ 2 ], 3 , 1 , "Przedmiot 2" , false , false )
guiGridListSetItemColor ( gridlist [ 2 ], 3 , 1 , 11 , 253 , 0 , 255 )
button [ 3 ] = guiCreateButton ( 219 , 48 , 136 , 54 , "Zmie? Skin" , false , poli )
guiSetFont ( button [ 3 ], "default-bold-small" )
guiSetProperty ( button [ 3 ], "NormalTextColour" , "FF0BFD00" )
button [ 4 ] = guiCreateButton ( 238 , 422 , 127 , 32 , "Zamknij Okno" , false , poli )
guiSetFont ( button [ 4 ], "default-bold-small" )
guiSetProperty ( button [ 4 ], "NormalTextColour" , "FFFC0000" )
function ustawskin_poli ()
if source == button [ 3 ] then
local row , col = guiGridListGetSelectedItem ( gridlist [ 1 ] )
local name = guiGridListGetItemText ( gridlist [ 1 ], row , col )
local item = guiGridListGetSelectedItem ( gridlist [ 1 ])
if item >= 0 then
if name == "Skin 1" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 280 )
else
if name == "Skin 2" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 281 )
else
if name == "Skin 3" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 282 )
else
if name == "Skin 4" then
triggerServerEvent ( "SetSkinPoli" , getLocalPlayer (), 283 )
end
end
end
end
end
end
end
addEventHandler ( "onClientGUIClick" , button [ 3 ], ustawskin_poli )
function zamknij_poli ()
if source == button [ 4 ] then
guiSetVisible ( poli , false )
showCursor ( false )
end
end
addEventHandler ( "onClientGUIClick" , button [ 4 ], zamknij_poli )
function pokazpanel_poli ( thePlayer )
if getLocalPlayer () ~= thePlayer then return end
guiGridListSetSelectedItem ( gridlist [ 1 ], 0 , 1 )
guiSetVisible ( poli , true )
showCursor ( true )
end
addEvent ( "OpenPoliSzafki" , true )
addEventHandler ( "OpenPoliSzafki" , root , pokazpanel_poli )
function zalogujdo_poli ()
if source == button [ 2 ] then
triggerServerEvent ( "onTeamPoli" , getLocalPlayer (), "" )
end
end
addEventHandler ( "onClientGUIClick" , button [ 2 ], zalogujdo_poli )
S-SIDE
myMarker_poli1 = createPickup ( - 1564 , 373 , 7 , 3 , 1275 , 100 )
addEventHandler ( "onResourceStart" , getRootElement (), onresourcestartapoli )
function setSkinPoli ( skin )
setPedSkin ( source , skin )
end
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli )
function MarkerHitPoli ( thePlayer )
if source == myMarker_poli1 then
if getElementType ( thePlayer ) == "player" then
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( 'Policja' ) ) then
triggerClientEvent ( "OpenPoliSzafki" , root , thePlayer )
end
end
end
end
addEventHandler ( "onPickupHit" , root , MarkerHitPoli )
Podpis
Uczeń LUA . Mapper MTA.
Wysłany: 2016-06-13, 15:20
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Jedynie zmieni?em S-SIDE. Spr?buj tego i poka? ewentualne b?edy w DB3 itd. itp.
myMarker_poli1 = createPickup ( - 1564 , 373 , 7 , 3 , 1275 , 100 )
function setSkinPoli ( skin )
setPedSkin ( source , skin )
end
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli )
function MarkerHitPoli ( thePlayer )
if source == myMarker_poli1 then
if getElementType ( thePlayer ) == "player" then
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( 'Policja' ) ) then
triggerClientEvent ( "OpenPoliSzafki" , root , thePlayer )
end
end
end
end
addEventHandler ( "onPickupHit" , root , MarkerHitPoli )
Wysłany: 2016-06-13, 18:43
sasik12
Wiek: 26 Na forum: 3763 dni Posty: 182
Piwa : 7
Ten sam error co wcze?niej
Podpis
Uczeń LUA . Mapper MTA.
Wysłany: 2016-06-13, 18:47
Emm
***** ***
Wiek: 32 Na forum: 3880 dni Posty: 3191
Nick w MP: Emm
Piwa : 6162
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Poka? plik meta.xml
Chcia?bym co? sprawdzi?.
Podpis
Użytkownik : 20.10.2015r
GTAO Member : 06.03.2016r
Support-Team : 20.01.2016r
Moderator : 30.03.2016r
Mod-Team : 08.10.2016r
Vice Admin : 04.05.2018r
Administrator : 03.05.2022r
[you]
! Koniecznie zapoznaj się z
regulaminem forum .
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również
regulaminy działów , w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez
Administrację , przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w
tym dziale .
Najważniejsze informacje od
Administracji możesz przeczytać
tutaj oraz
tutaj .
Wysłany: 2016-06-14, 13:04
sasik12
Wiek: 26 Na forum: 3763 dni Posty: 182
Piwa : 7
Meta
< script src = "panelpd.lua" type = "client" />
< script src = "panelpd_s.lua" type = "server" />
[ Dodano : 2016-06-15, 08:48 ]
Wie kto? juz czemu to si? nie wy?wietla ?
Podpis
Uczeń LUA . Mapper MTA.
Wysłany: 2016-06-15, 22:10
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
S-SIDE:
Zamiast tego:
function setSkinPoli ( skin )
setPedSkin ( source , skin )
end
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli )
Daj to:
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli
setPedSkin ( source , skin )
end
)
Sprawd? te? czy masz wszystkie triggery po stronie serwera i clienta.
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2016-06-16, 16:42
Loop
Inspektor
Wiek: 27 Na forum: 4289 dni Posty: 311
Nick w MP: Inspektor
Piwa : 201
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , getRootElement (), setSkinPoli ( skin )
setElementModel ( source , tonumber ( skin ))
end
)
setPedSkin to ju? jest przestarza?a funkcja
Wysłany: 2016-06-16, 16:45
Emm
***** ***
Wiek: 32 Na forum: 3880 dni Posty: 3191
Nick w MP: Emm
Piwa : 6162
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
A gdzie macie function?
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , root , function( skin )
setElementModel ( source , tonumber ( skin ))
end
)
Podpis
Użytkownik : 20.10.2015r
GTAO Member : 06.03.2016r
Support-Team : 20.01.2016r
Moderator : 30.03.2016r
Mod-Team : 08.10.2016r
Vice Admin : 04.05.2018r
Administrator : 03.05.2022r
[you]
! Koniecznie zapoznaj się z
regulaminem forum .
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również
regulaminy działów , w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez
Administrację , przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w
tym dziale .
Najważniejsze informacje od
Administracji możesz przeczytać
tutaj oraz
tutaj .
Ostatnio zmieniony przez Emm 2016-06-16, 16:58, w całości zmieniany 1 raz
Wysłany: 2016-06-16, 16:53
Loop
Inspektor
Wiek: 27 Na forum: 4289 dni Posty: 311
Nick w MP: Inspektor
Piwa : 201
Ma?a pomy?ka
addEvent ( "SetSkinPoli" , true )
addEventHandler ( "SetSkinPoli" , root , function( skin )
setElementModel ( source , tonumber ( skin ))
end
)
Tagi: gui :: się :: nie :: wyświtla
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: