[H@mer][GameRoom] Racing (GTA:O Style) + Map Editor

Update 3.5.1

  • Added Config.Game.EndScreenPos

  • Fixed error of vehicle custom class checker.

  • Fixed PointMarker HUD model memory display number 0 as invisible character.

  • Fixed HUD glitch rank display due to having no Rank system on server.

  • Improved winner screen by force load winner interior Ipl for some servers that removed the Ipl.

  • Improved anti knocked off vehicle system.

  • PointMarker Xbox Controller removed key to up/down freecam (RT/LT).

  • PointMarker disable enter menu list selector for Xbox Controller (A).

1 Like

Hey,

How did you manage to disable Menus while being in a race. Im using vMenu but cant manage to disable it for every player while a race is going on.

You can send this to my profile direct message.

Hi Everyone,
A quick thumbs up to the developer,

Personally I have had a long break from my own fiveM server, however I am now back, updating etc.

I am still looking for players to come along and enjoy what i have to offer on my server, send as a DM here for details.

Cheers.

Alan

1 Like

Can there be a feature where Passwords can only be used for certain groups, as an option when setting up a race?

I guess a yes or No would be polite, but I take it. its a no

Yes, you can use permission to hide this block code by JS.

window.addEventListener('message', function (event) {
	var item = event.data;

	if (item.message == "password_hide") {
		$("#password").hide();
	}
	
	if (item.message == "password_show") {
		$("#password").show();
	}
});

No that’s Hard coded, hiding the password field via CSS, I already know how that’s done

I am on about proper coding for permissions to use the password via groups permissions to use or not use it, not hide it

You can combine the .lua code to send an event after checking user’s permission from client side.

Add the following code

if allow then
	SendNUIMessage({
		message = "password_show",
	})
else
	SendNUIMessage({
		message = "password_hide",
	})
end

Add a listener event to hide the password block.

if (item.message == "password_hide") {
	$("#password").hide();
}
	
if (item.message == "password_show") {
	$("#password").show();
}

And then, after callback from GUI to create a room, remove the password for second security.

if not allow then
	data.password = ""
end

Or remove password from the server side after player calls create session event

if not allow then
	data.password = ""
end

Thank you.

Maybe as a feature for future release a proper permission function for al users.

example:

Admin and regulars group can use a password.

Something along those lines. but of course more flexibility etc.

1 Like


Help-me!

Use oxmysql instead of fivem-mysql-async

If you need to use fivem-mysql-async.
You have too replace exports['mysql-async'] with exports['fivem-mysql-async'] in fivem-mysql-async/lib/MySQL.lua file.

Okay, you got it here.
I’d like to know if it’s possible for players to choose their desired cars from a list before the race starts. What option activates to allow tuning of vehicles before the race?

When you win the race the money and xp are not counted anywhere and I am using DarkRP_XP

Players can drive their own vehicle before getting into the session to use a seated vehicle in the race.
Or using DarkRP_Raing:ForceOpenPersonalVehicleMenu() in the code to open personal vehicle menu.

RegisterCommand('+darkrp_racing_forceopenpersonalvehiclemenu', function()
	DarkRP_Raing:ForceOpenPersonalVehicleMenu()
end, false)
RegisterCommand('-darkrp_racing_forceopenpersonalvehiclemenu', function()
end, false)
RegisterKeyMapping('+darkrp_racing_forceopenpersonalvehiclemenu', 'Racing Force Open Personal Vehicle Menu', 'KEYBOARD', 'F6')

Did some errors appeared on server console?

No error appears

Edit server config event to give money to the player based on your RP core.

XP is not registering in the database, but when I press Z, the correct level is there. Could you help me?