Or set your group to superadmin, like es_admin doesn’t use the permission levels anymore. It uses the groups
HST : can you explain me step by step how to get this installed ?
So far I have done this :
Downloaded the files
added them to my ressource folder
ran the sql.sql in a mysql database
Changed the connection in the scripts with correct password to the db
Added - essentialmode to my citmp-server.yml file
But now I am lost. Do I need to copy the map [essential] to the map ressources ?
I want the es-admin working too. But i am confused with all the [quote=“HST, post:222, topic:3665”]
use the name of the gamemode. just copy and paste example_gamemode in place of fivem and make sure you add the gamemode name to the autostart resources along with the map name. (the map name should of been there by default)
[/quote]
For info, I try to add this es-freeroam (https://github.com/FiveM-Scripts/Essential_Freeroam), and they say to Place the folder in your resources/[essential] folder, but the folder [essential] is in a normal essential folder (without the brackets)
thanks in advance for helping.
When you downloaded essentialmode it came with an [essential] folder. This is where you place es_freeroam and add it to the autostart resources. in the map your running change fivem = true to the name of the gamemode. example_gamemode = true. it will be in the _resource.lua file of the map your running. make sure you have essentialmode above esadmin (if your using it) and the name of the gamemode in the autostart resources. So make sure to add example_gamemode to the auto start resources too. If you using es_freeroam change it to es_freeroam = true. Do not use both. If your using es_freeroam add it, if your using the examplegamemode add it.
Ok thanks, I got it running after some time. Now what i try to figure is how to implement this in normal missions.
Like I will add the mod that npc’s drop money. Now I want to add some code to add the money to the database also.
I’m kind of lost with the TriggerEvent stuff…
I’m sorry I ask all this, but i’m still learning
Hi, first thanks for your script.
However i have some trouble getting the permission when player spawn !
Here is my code
Client side
AddEventHandler("playerSpawned", function(source)
TriggerServerEvent("rp:GetPermission", source)
end)
RegisterNetEvent("SetSkin")
AddEventHandler("SetSkin", function(permission)
-- stuff here
end)
Server side
RegisterServerEvent("rp:GetPermission")
AddEventHandler("rp:GetPermission", function(source)
TriggerEvent("es:getPlayerFromId", source, function(user)
TriggerClientEvent("SetSkin", source, user.permission_level)
end)
end)
Here is the firs error i get on the console :
Error executing event handler for event es:getPlayerFromId in ressource essentialmode...
Hello FiveM,
I’ve got this issue since the morning. And it’s important to resolve it…
Complete traceback in the link : http://www.imgserv.com/images/2017/04/09/yzkAdmS.png
So far i have been able to get the mysql database up and running and i have been able to successfully stream all resources for the essentialmode to my server - YAY
But now im stuck in regards to scripting.
I am attempting to add a jail system to my server
(source: [Release] Simple Jail System)
But they have conveniently left out how to script the essentialmode.
Based on their instructions i was able to create a column in the users table named “detained” but i do not know how to make a script that would change the value of detained to 1.
can someone please help me figure this out?
I don’t understand how to install it…
add essentials folder and es_admin folder to resource folder. put them on your server config so they load, install mysql, run the sql file that comes with it, Rename the Example game mode folder to your game mode name and put that in your resource folder, Then go to your map your using ( default is the fivem–skater or something ) oppen __resource.lua and change at top from fivem=true to yourgamemodename = true, and boom thats it
Greetings to you may picture instructions to install the all of this in advance thanks
Hello,
I followed what the installation proccess but it seems I am facing an issue.
So, here we go with the checklist:
- Added database and modify info: done
- Adding extentions to the citmp-server file: done
- Modify __resource.lua in fivem-map-skater file by replacing with es_freeroam: done.
I also give me the grade of owner in the database, however, I can use the commands such as /announce. Have you any lead?
Cheers,
Welp figured out problem 1 now how would one go about allowing /weapon [wepname] commands o.o
Getting error in my database when I try to assign the same permission level to 2 different people: #1062 ERROR - Duplicate entry ‘0’ for key ‘PRIMARY’
Please help!
Remove PRIMARY KEY from Permission.level and set Identifier as PRIMARY
I don’t see the sql or the es_admin folder inside the download
Update 25-04-2017
- Added moneyIcon
- Fixed newPlayerLoaded event