mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
add database config object
Adds a DatabaseConfig dictionary which will allow an admin to specify a custom table/columns that exist outside of ESX. This gives us flexibility between ESX versions as well as making the phone frameworkas decoupled from ESX as possible. Also updates the contacts table to be namespaces with npwd
This commit is contained in:
1 parent
3a172a425b
commit
cb75d2f5cc
5 files changed
+27
-7
No files matched your search
+16
-1
@@ -1,10 +1,25 @@
|
||||
------
|
||||
-- Database table & column mapping. This mapping allows us to maintain
|
||||
-- a framework agnostic approach where integration into custom implementations
|
||||
-- is possible. This mappings default to values that work with ESX.
|
||||
------
|
||||
DatabaseConfig = {
|
||||
userTable = 'users',
|
||||
-- all of these fields are required to be in the userTable
|
||||
id = 'identifier',
|
||||
firstName = 'firstname',
|
||||
lastName = 'lastname',
|
||||
phoneNumber = 'phone_number'
|
||||
}
|
||||
|
||||
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
|
||||
Config.KeyTogglePhone = 288 -- F1
|
||||
Config.KeyTakeCall = 38 -- E
|
||||
Config.PhoneAsItem = true
|
||||
Config.PhoneAsItem = false
|
||||
|
||||
------
|
||||
--Destroy Phone
|
||||
|
||||
Reference in new issue
Block a user