Presentation
baseMods Is a mode that allows to have a basis for all your new mods
Current Features:
- interface UI html/css/js for role play
- Switch the role play menu when going to the gta menu
- Give or remove money
- Interactive thirst system
- Centralization of the texts of its mods, easier to translate a whole mod (html/languages.js)
- Parameter setting system (client/base.lua)
Download:
https://github.com/Esquimen/fiveM_baseMods
Installation:
- Do not use any other base mode (ex: Essential-mode…) IMPORTANT !!!
- Launch an executable for MYSQL (ex: easyphp, wamp, xampp …). I advice easyphp under windows.
- Insert the SQL side in its database. SQL content in the sql.sql file
- Set the “baseMods” folder to its server-side fiveM “resources” folder
- Change the MYSQL identifiers in the server/interactionsBDD.lua file either: MySQL:open(“127.0.0.1”, “gta5basemods”, “root”, “”)’
- Add the “-basemods” line to its server-side citmp-server.yml file
- All texts are stored in the html/languages.js file. The system can easily switch from one language to another
- Change your settings in the client/base.lua file.
Enjoy !
Parameters:
local parameters = {
["avoirSoif"] = true, -- Enable the urge to drink
["activateEat"] = true,
["activateWC"] = true,
["devise"] = "$",
["langue"] = "FR", -- FR or EN... | add the language in html/languages.js file
["primaryColor"] = "#007E00", -- Couleur primaire en héxadécimale | Primary color in hexadecimal
["secondaryColor"] = "#41C541",
}
Screenshots:
Usage:
TriggerServerEvent('bm:updateAugDimBDD', {{"money_joueur", "+", 5000}}) -- Send to the dataBase System
TriggerEvent("bm_sendNuiMessage", {mod="baseMods", type="moneyChange", typeMoney=1, addDim='+', montant=5000}) -- Send the UI message (message for the interface UI html/css/js)
The example below sends $ 5000 to the player. To remove instead of giving change “+” by “-”
TriggerServerEvent('bm:updateBDD', {{el, value}}) -- is el=nameColumnDataBase, value=newValue`
-- Exemple
TriggerServerEvent('bm:updateBDD', {{'money_joueur', 5000}}) | The player's wallet is fixed at 5000$
The example below allows to modify a single value in the database
TriggerServerEvent('bm:updateAugDimBDD', {{el, "signe", value}}) -- is el=nameColumnDataBase, signe=-ou+ ,value=newValue
The example below allows to increase or decrease a value in the database
TriggerEvent("bm_sendNuiMessage", {mod="baseMods", type="viewMsg", model="zone", text=1}) -- is text=keyInArrayLanguage (in the html/languages.js file)
Display a zone message
TriggerEvent("bm_sendNuiMessage", {mod="baseMods", type="viewMsg", model="mission", text=9})
Display a mission message
Commands:
SOON




