Skip to content

Editable files

Fiveops detects common scripts on its own (list). Use editable/ only when a script on your server is custom or renamed. These files are yours and are kept on updates. Settings like ban messages or log language are in the panel, not here.

editable/framework.lua
EditableServer.revive = {
custom = true, -- false: built-in, true: use fn below
fn = function(src)
TriggerClientEvent('my_ambulance:client:revive', src)
return true
end,
}
  • custom = false (default) keeps the built-in integration; custom = true calls your fn.
  • If fn errors or returns nil or the wrong type, the built-in integration is used for that call and the server console warns once a minute: editable/framework.lua → revive: returned nil; used the built-in behavior.
  • Run restart fiveops after editing.

framework.lua runs on the server (warnings in the server console); client.lua runs on each player’s game (no warnings: Fiveops prints nothing in F8).

EntryFilePage
framework, getPlayer, getPlayerByCitizenId, getCitizenId, onlinePlayers, searchCharactersframework.luaFramework and players
addMoney, removeMoney, setJob, moneyEventsframework.luaMoney and jobs
revive, heal, isDeadframework.luaAmbulance and death
openAppearance, societyBalanceframework.luaClothing and society accounts
giveVehicleKeys / setFuel, getFuel, giveKeysframework.lua / client.luaFuel and vehicle keys
phoneInfo, phoneSetNumber, phoneAction / phoneReloadframework.lua / client.luaPhone
inventoryTables, extraCharacterTablesframework.luaDatabase tables
weatherState, setTime, setWeatherframework.luaWeather and time
announceclient.luaAnnouncements