[Release] Roleplay Toolbox 2.0

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"

Jesus use a code block, why have you got models outside the array. Instead of

β€œ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”,
}

Use

local leoSkins = {
β€œs_m_y_cop_01”,
β€œs_m_y_hwaycop_01”,
β€œs_m_y_sheriff_01”,
β€œs_m_y_swat_01”,
}

cant find them how do i disABLE THE MESSAGE YOU ARE NOT COP

OMG :man_facepalming: if you don’t want permission scroll up and use that version.

dont see it

I’m a bit confused here. :thinking:
Where is 1.5?

2 3

LMAO my bad, I tend to upload things late at night.

SO it wont let me cuff people because it says im not a police officer, how do I become a police officer?

To add permissions to use it, it is based on the player’s skin, so you have 2 choices. Add your skins into the leoSkins or use the non permissions version.

Is there a way to disable using skins to verify people from each toolbox?

Yes as I said in the reply right above yours.

Simply use the non permissions version if you don’t want a permission system.

On the new update without permissions I am no longer able to change the key from β€œM”
I would like for it to be β€œNUMPAD+” which is under line 403 β€œif ( IsControlJustReleased( 0, 314 ) or IsDisabledControlJustReleased( 0, 314 ) ) and GetLastInputMethod( 0 ) then”
Can someone help me with this?

Odd… changing this line works fine.

if ( IsControlJustReleased( 0, --[[keyvalue]] ) or IsDisabledControlJustReleased( 0, --[[keyvalue]] ) ) and GetLastInputMethod( 0 ) then 

Ive tried but it wont open after the change is made.