RSG Core
RSG core resource and access to the framework object.
RSG Core is a modern RedM framework, inspired by QBCore on the FiveM side. Wiizer scripts in their RSG version rely on it.
Core resource
rsg-core must start before your RSG scripts. The core object is obtained
through an export:
local RSGCore = exports['rsg-core']:GetCoreObject()
Usable items
RSG exposes its own functions, for example to register a usable item:
RSGCore.Functions.CreateUseableItem("mon_item", function(source, item)
-- logique de l'item
end)
As with VORP, oxmysql is required for the database and must start first.