Skip to Content
Gui. Lawless NightCustom frameworkOverview

Custom framework

Everything that depends on the framework is in functions.lua, which is open. The top part runs on the server and the bottom part on the client.

With Config.Framework = "auto" and Config.Inventario = "auto" the script figures it out and prints on start something like base: qb · inventário: ox · idioma: en.

What each framework does

TopicvRPESXQBCoreQBox
Who the player is (Gui.UserId)user_ididentifiercitizenidcitizenid
NamevRP identityxPlayer.getName()charinfocharinfo
PermissionvRP.hasPermissiongroup in Config.gruposAdminframework HasPermissionHasPermission / ace group.*
Cash prizevRP.giveMoneyaddAccountMoney (money/bank)AddMoney (cash/bank)qbx_core AddMoney
Full hunger and thirstsetHunger/setThirst (or upgrade/downgrade)esx_statusmetadata hunger/thirstmetadata hunger/thirst
Revive on respawn and on exitnative revive + framework eventsnative + esx_ambulancejob:revivenative + hospital:client:Revivenative + hospital:client:Revive / qbx_medical
Death checked on the serverhealthhealthhealth or laststand/isdeadhealth or laststand/isdead
Event vehicle keysnot needednot neededvehiclekeys:client:SetOwnerqbx_vehiclekeys
Event vehicle fuelengine:tryFuelfuel state bagfuel state bagfuel state bag

Also recognized:

  • wasabi_ambulance: its revive event is called too.
  • qs-vehiclekeys and wasabi_carlock: for vehicle keys.

Inventory: see Inventories.