Skip to content

About

Small RedM framework bridge for VORP, RSG and TPZ, used by the free CAS scripts

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

cas_fwlibs

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.

Frameworks

  • 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.

Requirements

  • ox_lib
  • cas-simplenotify for client notifications

Installation

  1. Put the cas_fwlibs folder in your resources folder.
  2. Start it after your framework and before any script that needs it:
ensure ox_lib
ensure vorp_core
ensure vorp_inventory
ensure cas_fwlibs

Usage

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.

License

MIT, see LICENSE.

More from CAS Scripts

About

Small RedM framework bridge for VORP, RSG and TPZ, used by the free CAS scripts

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages