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

Wysłany: 2015-08-23, 15:09


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

mozesz zrobic to ?

[ Dodano: 2015-08-23, 15:15 ]

--[[
Przebieralnia

@copyright 2013-2014 Split <split@go-life.pl>
@author Split <split@go-life.pl>
@version 1.0 beta

Nie masz prawa u?ywac tego kodu bez mojej zgody.
Napisz do mnie by? mo?e si? zgodz? na u?ycie kodu.
]]--

local skiny = {280,285,286,300,298,72}                                                               
local ubrania = createMarker(-176.31,1112.27,19.74, "corona", 2, 0, 255, 255)
setElementData(ubrania, "marker_opis", "Wyb?r skina")
setElementInterior(ubrania, 0)
setElementDimension(ubrania, 0)

okno = guiCreateWindow(997, 179, 262, 381, "Przebieralnia", false)
gridlist = guiCreateGridList(9, 27, 243, 344, false, okno)
guiGridListAddColumn(gridlist, "ID", 0.9)
guiWindowSetSizable(okno, false)
guiSetVisible(okno, false)

for i,v in ipairs(skiny) do
    local row = guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlist, row, 1, v, false,false)
end


addEventHandler("onClientGUIClick", gridlist, function()
    local model = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist))
    
    if model then
        triggerServerEvent("onPlayerEditSkin", getLocalPlayer(), model)
    end
end)

addEventHandler("onClientMarkerHit", ubrania, function(el, md)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ))
        guiSetVisible(okno, true)
        showCursor(true, false)
    else
    outputChatBox ( "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave", ubrania, function(el, md)
    guiSetVisible(okno, false)
    showCursor(false)
    end
    end)


Cos w ten dens ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-23, 16:02


sebik2303

Mapper :)






Wiek: 25
Na forum: 4301 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

AstroStudio, Pokombinuj z tym kodem Tyko przestaw sobie kordy bo to s? moje :)

local myMarker = createMarker(1109.08203125, 1768.8251953125, 9.899000167847, 'cylinder', 1.0, 76, 76, 76, 150)
local myMarker = createMarker(1109.08203125, 1768.8251953125, 9.899000167847, 'cylinder', 2.0, 255, 0, 0, 0)
 
function MarkerHit( hitElement, matchingDimension )
    if matchingDimension then
        if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Mechanik_LV") ) then
            triggerClientEvent(hitElement, "nazwa", hitElement)
        end
    end
end
addEventHandler( "onMarkerHit", myMarker, MarkerHit)


[ Dodano: 2015-08-23, 16:03 ]
p.s. nom mo?e a jakie? db ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-23, 16:15


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

db jest
juz daje
LINK

[ Dodano: 2015-08-23, 16:29 ]
s-side
addEvent("onPlayerEditSkin", true)
addEventHandler("onPlayerEditSkin", root, function(model)
    setElementModel(source, model)
    setElementData(source, "gracz_ubranie", model)
end)
createBlip ( -179.10,1177.64,19.89, 45 )


c-side
local skiny = {280,285,286,300,298,72}                                                               
local ubrania = createMarker(-176.31,1112.27,19.74, "corona", 2, 0, 255, 255)
setElementData(ubrania, "marker_opis", "Wyb?r skina")
setElementInterior(ubrania, 0)
setElementDimension(ubrania, 0)

okno = guiCreateWindow(997, 179, 262, 381, "Przebieralnia", false)
gridlist = guiCreateGridList(9, 27, 243, 344, false, okno)
guiGridListAddColumn(gridlist, "ID", 0.9)
guiWindowSetSizable(okno, false)
guiSetVisible(okno, false)

for i,v in ipairs(skiny) do
    local row = guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlist, row, 1, v, false,false)
end


addEventHandler("onClientGUIClick", gridlist, function()
    local model = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist))
    
    if model then
        triggerServerEvent("onPlayerEditSkin", getLocalPlayer(), model)
    end
end)

addEventHandler("onClientMarkerHit", ubrania, function(el, md)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ))
        guiSetVisible(okno, true)
        showCursor(true, false)
    else
    outputChatBox ( "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave", ubrania, function(el, md)
    guiSetVisible(okno, false)
    showCursor(false)
    end
    end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-23, 16:32


sebik2303

Mapper :)






Wiek: 25
Na forum: 4301 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Pr?buj. C-side

local skiny = {280,285,286,300,298,72}                                                               
local ubrania = createMarker(-176.31,1112.27,19.74, "corona", 2, 0, 255, 255)
setElementData(ubrania, "marker_opis", "Wyb?r skina")
setElementInterior(ubrania, 0)
setElementDimension(ubrania, 0)

okno = guiCreateWindow(997, 179, 262, 381, "Przebieralnia", false)
gridlist = guiCreateGridList(9, 27, 243, 344, false, okno)
guiGridListAddColumn(gridlist, "ID", 0.9)
guiWindowSetSizable(okno, false)
guiSetVisible(okno, false)

for i,v in ipairs(skiny) do
    local row = guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlist, row, 1, v, false,false)
end


addEventHandler("onClientGUIClick", gridlist, function()
    local model = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist))
    
    if model then
        triggerServerEvent("onPlayerEditSkin", getLocalPlayer(), model)
    end
end)

addEventHandler("onClientMarkerHit", ubrania, function(el, md)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ))
        guiSetVisible(okno, true)
        showCursor(true, false)
    else
    outputChatBox ( "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave", ubrania, function(el, md)
    guiSetVisible(okno, false)
    showCursor(false)
    end)
    end)


[ Dodano: 2015-08-23, 16:37 ]
tera :)
local skiny = {280,285,286,300,298,72}                                                               
local ubrania = createMarker(-176.31,1112.27,19.74, "corona", 2, 0, 255, 255)
setElementData(ubrania, "marker_opis", "Wyb?r skina")
setElementInterior(ubrania, 0)
setElementDimension(ubrania, 0)

okno = guiCreateWindow(997, 179, 262, 381, "Przebieralnia", false)
gridlist = guiCreateGridList(9, 27, 243, 344, false, okno)
guiGridListAddColumn(gridlist, "ID", 0.9)
guiWindowSetSizable(okno, false)
guiSetVisible(okno, false)

for i,v in ipairs(skiny) do
    local row = guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlist, row, 1, v, false,false)
end


addEventHandler("onClientGUIClick", gridlist, function()
    local model = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist))
    
    if model then
        triggerServerEvent("onPlayerEditSkin", getLocalPlayer(), model)
    end
end)

addEventHandler("onClientMarkerHit", ubrania, function(el, md)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ))
        guiSetVisible(okno, true)
        showCursor(true, false)
    else
    outputChatBox ( "Nie jeste? VIP'EM" )
    end)
end)

addEventHandler("onClientMarkerLeave", ubrania, function(el, md)
    guiSetVisible(okno, false)
    showCursor(false)
    end)
    end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-23, 16:55


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

c-side

local skiny = {280,285,286,300,298,72}                                                               
local ubrania = createMarker(-176.31,1112.27,19.74, "corona", 2, 0, 255, 255)
setElementData(ubrania, "marker_opis", "Wyb?r skina")
setElementInterior(ubrania, 0)
setElementDimension(ubrania, 0)

okno = guiCreateWindow(997, 179, 262, 381, "Przebieralnia", false)
gridlist = guiCreateGridList(9, 27, 243, 344, false, okno)
guiGridListAddColumn(gridlist, "ID", 0.9)
guiWindowSetSizable(okno, false)
guiSetVisible(okno, false)

for i,v in ipairs(skiny) do
    local row = guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlist, row, 1, v, false,false)
end


addEventHandler("onClientGUIClick", gridlist, function()
    local model = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist))
    
    if model then
        triggerServerEvent("onPlayerEditSkin", getLocalPlayer(), model)
    end
end)

addEventHandler("onClientMarkerHit", ubrania, function(el, md)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     tiggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" )))
        guiSetVisible(okno, true)
        showCursor(true, false)
    else
    end
end)

addEventHandler("onClientMarkerLeave", ubrania, function(el, md)
    guiSetVisible(okno, false)
    showCursor(false)
    end)


Nie dzia?a

[ Dodano: 2015-08-23, 17:06 ]
DB3 : http://wrzuc.se/i/55d9def8d1c2a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-24, 00:50


Tostuch







Wiek: 28
Na forum: 5072 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

tiggerServerEvent ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" )))


Co to jest? :O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-24, 01:29


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

@up
co masz na my?li?

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-24, 15:27


Tostuch







Wiek: 28
Na forum: 5072 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Sk?adnie tej funkcji, to ma trigerrowa? event a nie funkcj?.

Postaw piwo autorowi tego posta
 

 
Tagi: skiny :: premium
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » skiny premium 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