mace_nw
February 22, 2025, 11:36am
540
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
HamerTH
August 22, 2025, 3:01pm
546
Yes, you can use permission to hide this block code by JS.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
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
HamerTH
August 25, 2025, 1:45pm
549
You can combine the .lua code to send an event after checking user’s permission from client side.
end
if GetGameTimer() - timeUI[type] > time then
timeUI[type] = GetGameTimer()
return true
end
return false
end
function OpenGameMenu(withXbox)
if isMenuOpen or not InPoint or IsPlayerDead(PlayerId()) or not CheckUiTime("ArenaLobby_Menu_Open", 100) or DecorGetInt(PlayerPedId(), "GameRoom") ~= 0 or IsPauseMenuActive() or IsPlayerSwitchInProgress() then
return
end
DisableControlAction(0, 36, true)
local GameList = {
"DarkRP_Aimlab",
"DarkRP_Bloodbowl",
"DarkRP_Bomb",
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.
newVal = 1;
}
}
$button.parent().find(".number").val(newVal);
soundClick = new Howl({ src: ["./sounds/click.ogg"], volume: 1.0 });
soundClick.play();
});
//?? Listen for NUI Events
window.addEventListener('message', function (event) {
var item = event.data;
//?? Open main window
if (item.message == "show") {
isXbox = item.withXbox
soundOpen = new Howl({ src: ["./sounds/open.ogg"], volume: 1.0 });
soundOpen.play();
$(".GameLobby").fadeIn(200);
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.
end)
RegisterNUICallback('join', function(data, cb)
if ArenaAPI:IsPlayerInAnyArena() then
Citizen.Wait(500)
end
ExecuteCommand("minigame join "..data.item)
cb('ok')
end)
RegisterNUICallback('create', function(data, cb)
if ArenaAPI:IsPlayerInAnyArena() then
ExecuteCommand("minigame leave")
Citizen.Wait(500)
end
TriggerServerEvent("ArenaLobby:CreateGame", data)
cb('ok')
end)
RegisterCommand('+ArenaLobby_Menu_Keyboard', function()
OpenGameMenu(false)
if not allow then
data.password = ""
end
Or remove password from the server side after player calls create session event
Identifier = v
end
end
return Identifier
else
return Identifier
end
end
RegisterNetEvent('ArenaLobby:CreateGame')
AddEventHandler('ArenaLobby:CreateGame', function(data)
data.password = tostring(data.password)
if data.gameName == "DarkRP_Derby" then
TriggerEvent("DarkRP_Derby:CreateArena", source, data.password)
elseif data.gameName == "DarkRP_CaptureTheFlag" then
TriggerEvent("DarkRP_CaptureTheFlag:CreateArena", source, data.password, data.option1, data.option2)
elseif data.gameName == "DarkRP_Teamdeathmacth" then
TriggerEvent("DarkRP_Teamdeathmacth:CreateArena", source, data.password, data.option1, data.option2, data.option3, data.option4)
elseif data.gameName == "DarkRP_Bomb" then
TriggerEvent("DarkRP_Bomb:CreateArena", source, data.password, data.option1, data.option2)
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
HamerTH
October 5, 2025, 11:52am
552
HamerTH
October 5, 2025, 7:56pm
553
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
HamerTH
October 7, 2025, 1:43am
556
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')
HamerTH
October 7, 2025, 1:44am
557
Did some errors appeared on server console?
HamerTH
October 7, 2025, 3:44pm
559
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?