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: 4329 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 bymo?e sizgodzna u?ycie kodu.
]]--

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

okno guiCreateWindow(997179262381"Przebieralnia"false)
gridlist guiCreateGridList(927243344falseokno)
guiGridListAddColumn(gridlist"ID"0.9)
guiWindowSetSizable(oknofalse)
guiSetVisible(oknofalse)

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


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

addEventHandler("onClientMarkerHit"ubrania, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" ))
        guiSetVisible(oknotrue)
        showCursor(truefalse)
    else
    outputChatBox "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave"ubrania, function(elmd)
    guiSetVisible(oknofalse)
    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: 4160 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.082031251768.82519531259.899000167847'cylinder'1.0767676150)
local myMarker createMarker(1109.082031251768.82519531259.899000167847'cylinder'2.0255000)
 
function MarkerHithitElementmatchingDimension )
    if matchingDimension then
        if isObjectInACLGroup "user." .. getAccountName(getPlayerAccount(hitElement)), aclGetGroup "Mechanik_LV") ) then
            triggerClientEvent(hitElement"nazwa"hitElement)
        end
    end
end
addEventHandler"onMarkerHit"myMarkerMarkerHit)


[ 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: 4329 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(sourcemodel)
    setElementData(source"gracz_ubranie"model)
end)
createBlip ( -179.10,1177.64,19.8945 )


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

okno guiCreateWindow(997179262381"Przebieralnia"false)
gridlist guiCreateGridList(927243344falseokno)
guiGridListAddColumn(gridlist"ID"0.9)
guiWindowSetSizable(oknofalse)
guiSetVisible(oknofalse)

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


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

addEventHandler("onClientMarkerHit"ubrania, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" ))
        guiSetVisible(oknotrue)
        showCursor(truefalse)
    else
    outputChatBox "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave"ubrania, function(elmd)
    guiSetVisible(oknofalse)
    showCursor(false)
    end
    end)


Postaw piwo autorowi tego posta
 

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


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 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"20255255)
setElementData(ubrania"marker_opis""Wyb?r skina")
setElementInterior(ubrania0)
setElementDimension(ubrania0)

okno guiCreateWindow(997179262381"Przebieralnia"false)
gridlist guiCreateGridList(927243344falseokno)
guiGridListAddColumn(gridlist"ID"0.9)
guiWindowSetSizable(oknofalse)
guiSetVisible(oknofalse)

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


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

addEventHandler("onClientMarkerHit"ubrania, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" ))
        guiSetVisible(oknotrue)
        showCursor(truefalse)
    else
    outputChatBox "Nie jeste? VIP'EM" )
    end
end)

addEventHandler("onClientMarkerLeave"ubrania, function(elmd)
    guiSetVisible(oknofalse)
    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"20255255)
setElementData(ubrania"marker_opis""Wyb?r skina")
setElementInterior(ubrania0)
setElementDimension(ubrania0)

okno guiCreateWindow(997179262381"Przebieralnia"false)
gridlist guiCreateGridList(927243344falseokno)
guiGridListAddColumn(gridlist"ID"0.9)
guiWindowSetSizable(oknofalse)
guiSetVisible(oknofalse)

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


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

addEventHandler("onClientMarkerHit"ubrania, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     triggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" ))
        guiSetVisible(oknotrue)
        showCursor(truefalse)
    else
    outputChatBox "Nie jeste? VIP'EM" )
    end)
end)

addEventHandler("onClientMarkerLeave"ubrania, function(elmd)
    guiSetVisible(oknofalse)
    showCursor(false)
    end)
    end)


Postaw piwo autorowi tego posta
 

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


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 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"20255255)
setElementData(ubrania"marker_opis""Wyb?r skina")
setElementInterior(ubrania0)
setElementDimension(ubrania0)

okno guiCreateWindow(997179262381"Przebieralnia"false)
gridlist guiCreateGridList(927243344falseokno)
guiGridListAddColumn(gridlist"ID"0.9)
guiWindowSetSizable(oknofalse)
guiSetVisible(oknofalse)

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


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

addEventHandler("onClientMarkerHit"ubrania, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el == localPlayer then
     tiggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" )))
        guiSetVisible(oknotrue)
        showCursor(truefalse)
    else
    end
end)

addEventHandler("onClientMarkerLeave"ubrania, function(elmd)
    guiSetVisible(oknofalse)
    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: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

tiggerServerEvent isObjectInACLGroup ("user."..accNameaclGetGroup "VIP" )))


Co to jest? :O

Postaw piwo autorowi tego posta
 

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


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

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: 27
Na forum: 4931 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