[Release] Roleplay Toolbox 2.0

i have a problem with the menu when any players joins my server the need to press m before the can look around with the mouse and then cloes the menu to fix it any fix on this.

What script do I need to register my officers as a Officer to use the LEO Toolbox

I am having the same issue as some people here. I followed what you said to unwhitelist. I also set it from

else if
to
if (

Though the menu still does not open. Does anyone know a fix to this?

Hmmm okay I will look into, just been really busy lately.

Thanks!

Roleplay Toolbox - No permissions


Since people have been having issues removing perms, I decided to release a no permissions version.

https://github.com/aka-lucifer/roleplay-toolbox/tree/NonPerm

2 Likes

Works great now! Thanks!

I have tried to remove the code that stops people from moving when handcuffed and they still can not move. I even tried to just disable the code, Did not work
This is the correct lines, Correct?

	--DisableControlAction(0,32, false) -- W
	--DisableControlAction(0,33, false) -- S
        --DisableControlAction(0,34, false) -- A
	--DisableControlAction(0,35, false) -- D

TIA

Remove lines 1086 FreezeEntityPosition(ped, true) and 1102 FreezeEntityPosition(ped, false)

how do i approve cops?

Go to line 27 and add skins that you want people to be access the menu with, then once it game get into one of those leo skins in the array and you can access the different options.

Line 27 In server or client.lua

Citizen.CreateThread( function()
Citizen.Wait( 1000 )
local resourceName = GetCurrentResourceName()
SendNUIMessage( { resourcename = resourceName } )
end )

– Define the variable used to open/close the menu
local menuEnabled = false
“s_m_y_cop_01”,
“s_m_y_hwaycop_01”,
“s_m_y_sheriff_01”,
“s_m_y_swat_01”,
local leoSkins = {
“s_m_y_cop_01”,
“s_m_y_hwaycop_01”,
“s_m_y_sheriff_01”,
“s_m_y_swat_01”,
}

local fdSkins = {
“s_m_y_fireman_01”,
“s_m_m_paramedic_01”,
}

like that

Not exactly no simply add more skins into the leoSkins array in the client

local leoSkins = {
	"s_m_y_cop_01",
    "s_m_y_hwaycop_01",
    "s_m_y_sheriff_01",
    "s_m_y_swat_01",
}

it says you are not cop

Then you haven’t added the skin correctly.

1 Like

u got discord

Show me your skin code here.

– Lucifer
– Copyrighted © Lucifer 2018
– Do not redistribute or edit in any way without my permission.

–[[------------------------------------------------------------------------

ActionMenu 
Created by WolfKnight
Additional help from lowheartrate, TheStonedTurtle, and Briglair. 

------------------------------------------------------------------------]]–

–[[------------------------------------------------------------------------
Resource Rename Fix – (Via Rhys19)
------------------------------------------------------------------------]]–
Citizen.CreateThread( function()
Citizen.Wait( 1000 )
local resourceName = GetCurrentResourceName()
SendNUIMessage( { resourcename = resourceName } )
end )

– Define the variable used to open/close the menu
local menuEnabled = true
“s_m_y_cop_01”,
“s_m_y_hwaycop_01”,
“s_m_y_sheriff_01”,
“s_m_y_swat_01”,
local leoSkins = {
“s_m_y_cop_01”,
“s_m_y_hwaycop_01”,
“s_m_y_sheriff_01”,
“s_m_y_swat_01”,
}

local fdSkins = {
“s_m_y_fireman_01”,
“s_m_m_paramedic_01”,
}

–[[------------------------------------------------------------------------
ActionMenu Toggle
Calling this function will open or close the ActionMenu.
------------------------------------------------------------------------]]–
function ToggleActionMenu()
– Make the menuEnabled variable not itself
– e.g. not true = false, not false = true
menuEnabled = not menuEnabled

local message = "you should learn to use code blocks"