General > Developers Corner
Help With Plugin
nexbr:
Hi.
I want to do a Plugin, I Know Lua and Already did somethings with ULX and ULIB, I read some of the ULX Documentation, but I didn't figure out how to make this Plugin as I want to do.
I need create a ULX User Flag, that can be set on ULX Panel.
And i need make this Flag Global to I access it from Global Like: Player:IsAllowedToDoX().
Megiddo:
To create access flags you use registerAccess (this gives it default permissions and registers it on XGUI) and ply:query(...)
nexbr:
--- Quote from: Megiddo on June 20, 2013, 08:52:24 AM ---To create access flags you use registerAccess (this gives it default permissions and registers it on XGUI) and ply:query(...)
--- End quote ---
Thanks but how exactly works query? Since it do not show any Args?
nexbr:
Ok, how i add a new ?registerAccess category? i typed a custom category and it do not show up.
nexbr:
i think i did wrong: ucl.registerAccess("ulx permXX", {"admin", "superadmin"}, "Give access to XX", "Other") it doesn't shows on Perm list.
Help!
Navigation
[0] Message Index
[#] Next page
Go to full version