Skip to main content
If your server does not use ESX/QB/QBX, create your own framework adapter.
  1. Copy one existing folder from fivemora-core/framework (for example qb-core).
  2. Rename the copied folder to standalone.
  3. Replace all framework-specific function bodies with your own logic.
  4. Ensure your custom adapter sets:
  1. Restart and test logging + metadata.

Minimum functions to implement

At minimum, implement functions used by core logging and API handlers:
  • Framework.GetPlayer(src)
  • Framework.GetPlayerIdentifier(src)
  • Framework.GetPlayerName(src)
  • Framework.GetPlayerJob(src)
  • Framework.GetPlayerGang(src)
  • Framework.GetAccountBalance(src, type)
  • Framework.GetExistingCharacters(license, cb)
  • Framework.LookupVehicle(plate)
  • Framework.StoreVehicle(plate, garage)
  • Framework.RevivePlayer(src)
  • Framework.GetInfractionsByUid(uid)
If a method is not supported by your system, return safe defaults (nil, {}, or false) and adapt API routes accordingly.

Event bridge compatibility

Your scripts should still emit Fivemora events from logeventhandlers (or call AddWebsiteLog directly).

Testing tips

  • Trigger money log test using your economy script.
  • Trigger an admin action test.
  • Trigger a report test.
  • Confirm metadata fields are populated and not unknown.