How to use the lib
Integrating ps_lib
is extremely simple.
Step 1: Add the Initialization
In any shared file of the script where you want to use ps_lib
, add the following line:
luaCopyEditps = exports.ps_lib:init()
Step 2: That's It
Placing this line in a shared context ensures that:
On the client side, it returns client-side utilities.
On the server side, it returns server-side utilities.
This allows you to access ps_lib
functionalities cleanly and consistently across both environments with no additional setup.
Last updated