Ulysses

General => Developers Corner => Topic started by: adigyran on February 26, 2011, 01:54:25 AM

Title: Ulx with other addon and use ulx commands on this.... help
Post by: adigyran on February 26, 2011, 01:54:25 AM
i`m created a simple donate system, me need a include ulx function on it
the addon:
addons\Donate_mode\lua\autorun\kodtest.lua
me need include the ucl commands in this lua...
what i`m need using?
hooks?
include("addons/ulub/lua/server/ucl.lua")
don`t works
i need a command
addUser(pl,"donator")
Title: Re: Ulx with other addon and use ulx commands on this.... help
Post by: Megiddo on February 26, 2011, 06:21:58 AM
Are you looking for ULib.ucl.addUser (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser)?

Or, you can do as XGUI does and just call the "ulx adduser" command in the console.
Title: Re: Ulx with other addon and use ulx commands on this.... help
Post by: BigBrainAFK on April 14, 2014, 03:32:29 AM
i know the topic is old but how to call it in the console?
Title: Re: Ulx with other addon and use ulx commands on this.... help
Post by: JamminR on April 14, 2014, 06:46:01 AM
RunConsoleCommand (http://wiki.garrysmod.com/page/Global/RunConsoleCommand) on server side code.