General > Developers Corner

Ulx New Commands

(1/2) > >>

Bite That Apple:
Is it possible to add like a text when creating a custom ulx plugin?

An example is like this:

local setmodel = ulx.command( CATEGORY_NAME, "ulx setmodel", ulx.setmodel, "!setmodel" )
setmodel:addParam{ type=ULib.cmds.PlayerArg }
setmodel:addParam{ type=ULib.cmds.StringArg, hint="models/headcrabblack.mdl" }
setmodel:addParam{ type=ULib.cmds.NumArg, min=0, max=255, default=255, hint="Red", ULib.cmds.round, ULib.cmds.optional }
setmodel:addParam{ type=ULib.cmds.NumArg, min=0, max=255, default=255, hint="Green", ULib.cmds.round, ULib.cmds.optional }
setmodel:addParam{ type=ULib.cmds.NumArg, min=0, max=255, default=255, hint="Blue", ULib.cmds.round, ULib.cmds.optional }
setmodel:defaultAccess( ULib.ACCESS_ADMIN )
setmodel:help( "Set any model to a player - !setmodel" )


So would there be a way to add text saying like w/e, instead of using "Help"

JamminR:
You lost me.
Please define/explain 'add text' in another way.
Where are you wanting this text to appear?
What context?

Megiddo:
I am also confused.

nathan736:
what he PROBABLY means is he wants to use a non-standard text when ulx prints something in the chat?
OR
he .. idk. his copy paste confuzles me

Bite That Apple:
Well seeing as how I said it the first time I "might of" confused some people so let explain it like this. Well you know when you type just "!hp" and it will show you an example of its use :help('EXAMPLE HERE'). Now here is my problem, in xgui you will also see the example for whatever command you are using. What I want is to have like just text that will only show for that command in xgui. Like a text saying what I want it to say only showing in xgui and not in the Helpt text.

Navigation

[0] Message Index

[#] Next page

Go to full version