F_SmartWatch config file
unknown
lua
2 years ago
5.0 kB
128
Indexable
Config = {}
Config.Framework = 'ESX' -- ESX or QBCore
Config.NeedItem = true
-- ONLY NEEDED IF Config.NeedItem IS TRUE ---------------------------------------------------------
Config.Inventory = 'ox' -- 'ox', 'qb', or add yours in the HasItem function in client/functions.lua
Config.ItemName = 'smartwatch'
---------------------------------------------------------------------------------------------------
Config.OpenKey = 'J'
Config.UsingFKeysSystem = false
Config.VehicleInteractionDistance = 10.0
Config.DefaultWatchColor = 'black'
Config.WatchColors = {
['black'] = {
label = "Black",
url = "imgs/watch_black.png"
},
['light_blue'] = {
label = "Light Blue",
url = "imgs/watch_light_blue.png"
},
['pink'] = {
label = "Pink",
url = "imgs/watch_pink.png"
},
['yellow'] = {
label = "Yellow",
url = "imgs/watch_yellow.png"
},
}
Config.ReporterJob = 'reporter'
Config.AllowedStaffForNews = {
'admin',
'mod',
'helper',
'god'
}
Config.EmergencyServices = {
{
job = 'police',
number = 'police',
message = "I need help!",
img = 'imgs/police-badge.png'
},
{
job = 'ambulance',
number = 'ambulance',
message = "I need an ambulance!",
img = 'imgs/hospital.png'
}
}
RegisterNetEvent('F_SmartWatch:emergencyCall')
AddEventHandler('F_SmartWatch:emergencyCall', function(number, job, message)
--[[You can add what you want inside here, for example a phone message to the emergency number (see the documentation of your phone for this),
or a dispatch notification, etc...]]
print("Emergency call!", number, job, message)
FW.ClientNotify("Easily setup emergency call from the config!")
-- This is an **EXAMPLE** for lb-phone, please **CHECK YOUR PHONE DOCS FOR THIS**:
--[[
exports["lb-phone"]:SendCompanyMessage(job, message)
exports["lb-phone"]:SendCompanyCoords(job)
]]
-- This is an **EXAMPLE** for qs-phone, please **CHECK YOUR PHONE DOCS FOR THIS**:
--[[
TriggerServerEvent('qs-smartphone:server:sendJobAlert', {
message = message,
location = GetEntityCoords(PlayerPedId()),
}, job)
TriggerServerEvent('qs-smartphone:server:AddNotifies', {
head = "Emergency",
msg = message,
app = 'business'
})
]]
end)
Config.EmergencyCooldown = 60 --seconds
Config.DefaultJob = 'unemployed'
Config.Sounds = {
['ringtone'] = {url = "https://www.youtube.com/watch?v=1zhlA0iTASY", volume = 1.0, loop = true},
['notification'] = {url = "./sounds/notification.mp3", volume = 1.0, loop = false}
}
Config.Labels = {
['your_server_name'] = "My RP Server",
['player_hired'] = "Player hired",
['player_not_online'] = "Player not online",
['wrong_input'] = "Wrong Input",
['player_promoted'] = "Player Promoted",
['cant_promote'] = "Can't Promote",
['player_degraded'] = "Player Degraded",
['cant_degrade'] = "Can't Degrade",
['player_fired'] = "Player Fired",
['cant_fire'] = "Can't Fire",
['health'] = "Health",
['vehicle_not_found'] = "Vehicle not Found",
['bank'] = 'Bank',
['monday'] = "MON",
['tuesday'] = "TUE",
['wednesday'] = "WED",
['thursday'] = "THU",
['friday'] = "FRI",
['saturday'] = "SAT",
['sunday'] = "SUN",
['id'] = "ID",
['amount'] = "Amount",
['send'] = "Send",
['sent_money'] = "Money sent",
['calculator'] = "Calculator",
['alarms'] = "Alarms",
['add_alarm'] = "Add Alarm",
['new_alarm'] = "New Alarm",
['alarm_name'] = "Alarm name...",
['add'] = "Add",
['default_alarm'] = "Default Alarm",
['snooze'] = "Snooze",
['bills'] = "Bills",
['paid_bill'] = "You paid the bill",
['not_enough_money'] = "You don't have enough money",
['maps'] = "Maps",
['MAPS'] = "MAPS",
['add_edit'] = "ADD/EDIT",
['waypoint_set'] = "A waypoint was set",
['title'] = "Title...",
['icon_url'] = "Icon URL...",
['description'] = "Description...",
['image_url'] = "Image URL...",
['update'] = "Update",
['news'] = "News",
['ic'] = "IC",
['ooc'] = "OOC",
['add_ic'] = "ADD IC",
['add_ooc'] = "ADD OOC",
['optional'] = "(optional)",
['confirm'] = "CONFIRM",
['news_added'] = "You added a news",
['news_deleted'] = "You deleted a news",
['emergency'] = "Emergency",
['emergency_call_sent'] = "Emergency call sent",
['wait'] = "Please wait...",
['job'] = "Job",
['salary'] = "Salary:",
['society_money'] = "Society Money:",
['hire'] = "Hire",
['player_id'] = "Player ID",
['online'] = "Online",
['notes'] = "Notes",
['note_deleted'] = "Note deleted",
['new_note'] = "New Note",
['text'] = "Text...",
['note_added'] = "Note added",
['settings'] = "Settings",
['color_set'] = "Color set"
}
Editor is loading...