Hi uh, Ive tryed to get some code to work on ULX, But when i have it in game its saying i do not have access, And it doesnt appear anywhere.
Heres the code. [CODE]CATEGORY_NAME = Fun
function ulx.sm( calling_ply, target_plys, strings )
for i=1, #target_plys do
target_plys[ i ]:SetMaterial( strings )
end
ulx.fancyLogAdmin( calling_ply, "#A set the material for #T to #i", target_plys, strings )
end
local sm = ulx.command( CATEGORY_NAME, "ulx setmat", ulx.sm, "!sm", true, true )
sm:addParam{ type=ULib.cmds.PlayersArg }
sm:addParam{ type=ULib.cmds.StringArg, hint="help", ULib.cmds.takeRestOfLine }
sm:defaultAccess( ULib.ACCESS_ALL )
sm:help( "Sets the playermodel material for target(s). Brought to you by Kiro (a.k.a Wolf)" )
[/CODE] I did not make this FYI, My Coder friend did
Bump..?
[CODE]function ulx.sm( calling_ply, target_plys, num )
for i=1, #target_plys do
target_plys[ i ]:SetMaterial( num )
end
ulx.fancyLogAdmin( calling_ply, "#A set the material for #T to #i", target_plys, num )
end
local sm = ulx.command( CATEGORY_NAME, "ulx setmat", ulx.sm, "!sm", true, true )
sm:addParam{ type=ULib.cmds.PlayersArg }
sm:addParam{ type=ULib.cmds.StringArg, hint="help", ULib.cmds.takeRestOfLine }
sm:defaultAccess( ULib.ACCESS_ADMIN )
sm:help( "Sets the playermodel material for target(s). Brought to you by Kiro (a.k.a Wolf)" )[/CODE]
untested but should work
Working, Thanks a bunch!
Sorry, you need to Log In to post a reply to this thread.