manve1 Posted August 7, 2012 Share Posted August 7, 2012 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
Castillo Posted August 7, 2012 Share Posted August 7, 2012 Is that the complete script? Link to comment
manve1 Posted August 7, 2012 Author Share Posted August 7, 2012 no.. there is event handlers and then server side.. then its complete Link to comment
Castillo Posted August 8, 2012 Share Posted August 8, 2012 And what is not working exactly? Link to comment
TAPL Posted August 8, 2012 Share Posted August 8, 2012 to set the skin you need to use setElementModel Server Side https://wiki.multitheftauto.com/wiki/SetElementModel Link to comment
manve1 Posted August 8, 2012 Author Share Posted August 8, 2012 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 Link to comment
albers14 Posted August 8, 2012 Share Posted August 8, 2012 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
Castillo Posted August 8, 2012 Share Posted August 8, 2012 Not triggerEvent, but triggerServerEvent. Link to comment
albers14 Posted August 8, 2012 Share Posted August 8, 2012 Not triggerEvent, but triggerServerEvent. Orh ye thanks. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now