micheal1230 Posted June 5, 2012 Posted June 5, 2012 Im Getting Bad Arg. At addPedClothes function cj(source, type, value) local type = (tonumber(value)) addPedClothes(source, type, value) outputChatBox("Clothes Changed",source) end addCommandHandler("cj",cj)
X-SHADOW Posted June 5, 2012 Posted June 5, 2012 addCommandHandler('cj', root,--- the Command function() addPedClothes ( source, "moto", "moto", 16 )--- you have put the type of the Clothes setElementModel(source,0) -----small edit to make the skin cj outputChatBox('Clothes Changed',255,255,0)--- in ClientSide source not needed end) Read Comments and read this before Make a new topic https://wiki.multitheftauto.com/wiki/AddPedClothes My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
micheal1230 Posted June 5, 2012 Author Posted June 5, 2012 addCommandHandler('cj', root,--- the Command function() addPedClothes ( source, "moto", "moto", 16 )--- you have put the type of the Clothes setElementModel(source,0) -----small edit to make the skin cj outputChatBox('Clothes Changed',255,255,0)--- in ClientSide source not needed end) Read Comments and read this before Make a new topic https://wiki.multitheftauto.com/wiki/AddPedClothes Lol Mate I Want People To Be Able To Customize There CJ Skin not Give Them A Helmet
Alpha Posted June 5, 2012 Posted June 5, 2012 No base argument for addCommandHandler. You're using source, which isn't defined. outputChatBox missing forWho argument. addCommandHandler('cj',--- the Command function(player) setElementModel(player,0) -----small edit to make the skin cj addPedClothes ( player, "moto", "moto", 16 )--- you have put the type of the Clothes outputChatBox('Clothes Changed',player,255,255,0)--- in ClientSide source not needed end) EDIT: Lol Mate I Want People To Be Able To Customize There CJ Skin not Give Them A Helmet I suggest a GUI for that, because they might type in anything. My Resources: [REL] Support System v1.0.2
X-SHADOW Posted June 5, 2012 Posted June 5, 2012 Oh Thank's Alpha for That My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Guest Guest4401 Posted June 5, 2012 Posted June 5, 2012 function cj(player,command,texture,model,cType) if texture and model and cType then if not tonumber(cType) then outputChatBox("Model must be a number",player) return end if getElementModel(player) == 0 then if addPedClothes(player,texture,model,tonumber(cType)) then outputChatBox("Clothes Changed",player) else outputChatBox("Texture, model or type doesn't exist. Please re-check list: #abcdefhttps://wiki.multitheftauto.com/wiki/CJ_Clothes",player,255,255,255,true) end else outputChatBox("Only CJ can change clothes",player) end else outputChatBox("Wrong syntax. Use: /cj Texture Model Type",player) end end addCommandHandler("cj",cj) Type: /cj clothesTexture clothesModel clothesType
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