A small framework bridge for RedM. It finds the framework that is running on your server and gives our free scripts one set of functions for money, items, weapons, jobs and player data, so the same script works on all of them.
Used by cas-artheist.
- VORP Core with vorp_inventory
- RSG Core with rsg-inventory
- TPZ Core
The framework is detected at start from the resources that are running; there is nothing to configure.
- ox_lib
cas-simplenotifyfor client notifications
- Put the
cas_fwlibsfolder in yourresourcesfolder. - Start it after your framework and before any script that needs it:
ensure ox_lib
ensure vorp_core
ensure vorp_inventory
ensure cas_fwlibs
local MBL = exports.cas_fwlibs:MBLFunctions()The export exists on the server and on the client. Server functions include getMoney, AddItem, RemoveItem, addWeapon, canCarryItem, getInventory, getItemCount, getJob, getJobGrade, setJob, getIdentifier, getFullname and isdead. See sv_libs.lua for the full list.
MIT, see LICENSE.
- Store: codeaftersex.com/scripts, RedM scripts for VORP and RSG servers, most with a live demo
- Free maps: codeaftersex.com/maps
- More free scripts: github.com/CAS-Scripts
- Documentation: code-after-sex.gitbook.io/script-documentation
- Support: Discord