Jump to content

Please help


Recommended Posts

Hey.. i still haven't finished my skin resource cuz i dont know how to make that you get the skin when you chose it on the resource then click "Use" button and it gives you ( im noob at this ) please help me

Client side:

window = guiCreateWindow ( 0.75, 0.5, 0.25, 0.5, "Chose Skin", true ) 
guiSetAlpha ( window, 1 ) 
guiCreateMemo(20,25,160,90,"By taking a skin, you promise to use it fair and not for a joke.",false,window) 
button1 = guiCreateButton( 0.1, 0.8, 0.25, 0.1, "Use",true,window) 
button2 = guiCreateButton( 0.65, 0.8, 0.25, 0.1, "Close",true,window) 
skinID = {277,278,279} 
function skins() 
    list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) 
    column = guiGridListAddColumn(list, "Skins", 0.85) 
    for _,v in ipairs (skinID) do 
         row = guiGridListAddRow(list) 
         guiGridListSetItemText(list, row, column, tostring(v), false, true) 

please help me. i need this script for one server

Link to comment
Everything is working... only thing is that idk how to make that when player selects skin ID on grid list then presses button "use" to get the skin ID he selected as his model

Actually you just need to use setElementModel serverside, that would say you are in need of using triggerEvent.

And you are also in need of sending the information about who the ped is that should get the skin changed.

Try to take a look at triggerEvent and addEvent

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...