[EssentialMode 4] [FXServer] es_rp | _The_ Roleplay Gamemode [Beta-ish or so]

I also am having the 5 sec. screen flash issue, no idea if or how to fix it, that and couldn’t get any jobs to work.

ACL attempting to sync time.

I get that. Would that not be a framework? He claims it to be a complete rp solution when in fact it is incomplete. Which makes a framework.

The other issue is he changed it to be in a non standard database format so people would have a hard time to write other things for it. Talking about both esmode and es rp here. He wrote both.

With es mode 2 people were adding stuff to it left and right. If you look at now that has scaled down because of his decision of changing the database. He claims that couch db performs better but, the fact of the matter here mysql has been used by many for years.

He did this so he can make his own addons for esmode like es rp which is a rp framework. When people give him constructive critisim and make some good suggestions for change, he gets defensive.

That was something that was in the banking addon itself, which I won’t put back. I removed all code related to that.

PS: That change shouldn’t work properly, so beware for issues it may cause.

1 Like

can you help me every thing works but i dont know how to put friends in jail the jail blue icon circle is there but i dont know how to grab player and put them in jail ect i can cuff them and everythink els

You can get the drag command by getting the Cops FiveM addon for your server. It works great with es_rp and es4. Otherwise look around for a drag script I’ve seen a couple floating around the forums. Be sure to edit the config for either mysql or couchdb.
This is the link for the Cops FiveM mod
The command is /jail [player id] [time jailed]
to get the player id by default is, up arrow key

edit: private message me and ill help you try to set it up.

bro thank you so much ive done alot and im neally there:) you saved me wasting time. ive just put 70 cars in lol im tierd now. Do u know any old mods i may have missed out on i have all new ones on from this site

i have cops fivem everythink works but when i try grab player or put in car ect dont work

Is there a way i can change the paycheck so it will go to my cash?

Can you help me figure out how to create submenu’s in the interaction menu?

I’ve made this which works but instead of the LS Customs option just repairing the vehicle I want it to instead bring up a sub menu with multiple options

if job == "Mechanic" then
	if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
		for i in ipairs(mechanicGarages)do
			local pos = mechanicGarages[i]
			if Vdist(myPos.x, myPos.y, myPos.z, pos.x, pos.y, pos.z) < 10.0 then
				interactions.menuOption("LS Customs", function()
					local vehicleToRepair = GetVehiclePedIsIn(GetPlayerPed(-1), false)
					SetVehicleFixed(vehicleToRepair)
					SetVehicleDeformationFixed(vehicleToRepair)
				end)		
			end
		end
	end
end

There is no support for submenus. And in the way it is built it might prove very difficult to add one as I tried for a while but just said screw it.

For a LS Customs it might be nicer to just go to a shop and have an option popup to press it and it will just open a new menu.

Well. In latest update es_admin no longer have /car command as default, how can i add it?

By writing some code that adds a command which in return triggers a client event spawning a vehicle. Or copy it from old es_admin versions which will work.

Nope. Copy/paste doesn’t work for me.

Actually vehicle spawning script exists in cl_admin.lua and looks like this:

RegisterNetEvent('es_admin:spawnVehicle')
AddEventHandler('es_admin:spawnVehicle', function(v)
	local carid = GetHashKey(v)
	local playerPed = GetPlayerPed(-1)
	if playerPed and playerPed ~= -1 then
		RequestModel(carid)
		while not HasModelLoaded(carid) do
				Citizen.Wait(0)
		end
		local playerCoords = GetEntityCoords(playerPed)

		veh = CreateVehicle(carid, playerCoords, 0.0, true, false)
		SetVehicleAsNoLongerNeeded(veh)
		TaskWarpPedIntoVehicle(playerPed, veh, -1)
	end
end)

But there is nothing in sv_admin.lua, where should be chat command settings related to cl_admin.lua.

If i copy needed part from previous versions and type /car in chat, nothing happens.

Well then code it yourself, although it should be working I literally haven’t touched that code for months and can already see a ton of shit code looking at that client stuff.

Thank you for the quick response!

That’s how it looks in prev versions.

TriggerEvent('es:addCommand', 'car', function(source, args, user)
	TriggerClientEvent('es_admin:spawnVehicle', source, args[2])
end)

I edited it a bit and now it works, so if anyone need it…

TriggerEvent('es:addGroupCommand', 'car', "admin", function(source, args, user)
	TriggerClientEvent('es_admin:spawnVehicle', source, args[2])
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end, {help = "Spawn a vehicle"})

Probably should be pasted somwhere after “Noclip” command, cause (idk why) it doesnt work if pasted at the end of code (after logging)

2 Likes

Quick question is there a coma system implemented in Es_rp that has to be enabled? If so what would it be under. Just asking because es rp has the the ems job where they are able to revive people.

No it was removed because of issues.

same problem how do i solve