SBF Tablet Installation Guide
System Requirements
- FiveM Server
- MySQL Database
Compatible Frameworks
Installation
1 Download & Extract
Extract the sbf_tablet folder to your server's resources directory:
server-data/resources/[tablet]/sbf_tablet
2 Database Setup
Import the provided SQL files into your database:
sbf_tablet/installation/database.sql
3 Optional Database Templates
2. Optional Database Templates: The db folder contains SQL templates for additional functionality
sbf_tablet/db/police_additional.sql
Ambulance templates:
sbf_tablet/db/ambulance_additional.sql
4 Server Configuration
Add the resource to your server.cfg:
ensure sbf_tablet
Exports
Service Dispatch Exports
The SBF Tablet includes powerful export functions for creating service dispatches from other scripts. This allows you to integrate emergency calls, service requests, and location sharing directly into the tablet's service system.
Example Usage:
-- Example: Creating a service dispatch from a robbery script
RegisterCommand('callpolice', function(source, args, rawCommand)
local xPlayer = ESX.GetPlayerFromId(source)
local coords = GetEntityCoords(GetPlayerPed(source))
-- Create a new service chat for police
local result = exports.sbf_tablet:createServiceChat('JOBNAME')
if result and result.success then
-- Send a message to the service
exports.sbf_tablet:sendServiceMessage(result.chat.id, "TEXT TO CHAT")
-- Send coordinates to the service
exports.sbf_tablet:sendServiceCoordinates(result.chat.id, {
x = coords.x,
y = coords.y
}, "location")
end
end
Support
Need Help?
If you encounter any issues during installation or have questions about the script, please don't hesitate to contact the support team.