Fax Core - Ace Based Permission System, Including Blacklisting of Cars, Peds & Guns [Fax-Core] [2.1]

id like to see an addition to restrict peds for people under admin

Already is that option.

1 Like

@FAXES, I have the same issue as @Tommo-101. Some people are able to still obtain the blacklisted item, whether it’s a vehicle, weapon, or player model.

Check your blacklists. Me nor the people in my Discord have issues with it or have reported it. That including my official testers…

1 Like

how do i allow military vehicles @FAXES

Edit the vehicles file and remove the vehicle class

1 Like

is it the v_veh.lua i have to edit?

yep

1 Like


Would i delete just the highlighted portion?

image
Also how do i make m1 vehicle restrictions?
i copied the m2 portion but what would i change rmodel14 to in the m1 restrictions?
(from what it looks it would look to be rmodel15)

I mean no disrespect because I love this script but, you need to remake the entire permission system because it is ass. blacklisting staff peds don’t work and neither does blacklisting staff vehicles was able to bypass them both. On M3 Permissions

Set it up properly and you won’t have issues. If and when you find an actual error is when I’ll “”“fix”"" the blacklist system.

2 Likes

Seems like I’m not the only one having an issue from the comments above. This is my config. I can’t see any issue but people are still bypassing it for models & vehicles.

--[[

 Please note. When adding cars, weapons or peds that all characterization is uppercase (A, B, C not a, b, c)
 Also when making separate lines you are required to place a comma (,) on all lines except the last, as seen below.
 Links for lists of vehicles, weapons and peds can be found at the very bottom of this file.

 Configs in this file include
 - Vehicle blacklists
 - Weapon blacklists
 - Ped models blacklists
 - Extra Information

 Set up Wiki / Edit Guide
 http://faxes.zone/docs/faxcore.html

]]

--[[
	VEHICLE SECTION

	NOTES

	x Don"t add Military Vehicles! They are added as a vehicle class to make your life better!
	x Vehicles will force people out of them except for vehicles in "restrictedVehsGen"
	x All Super cars are already blacklisted for guests by default
]]
-- Vehicles that are restricted for all except admins
vehModelsAdmin = 
{
	"ADMIN",
	"ADMIN2",
}

-- Vehicles that are restricted for people below Owner (Snr Admin, Admin, M3, M2, M1, Guest)
restrictedVehsGen = 
{
	"ANNIHILATOR",
	"CARGOBOB",
	"CARGOBOB2",
	"CARGOBOB3",
	"CARGOBOB4",
	"FROGGER",
	"FROGGER2",
	"MAVERICK",
	"BALLER5",
	"BALLER6",
	"BLIMP",
	"BLIMP2",
	"BLAZER4",
	"BLAZER5",
	"BRICKADE",
	"BUZZARD",
	"BOXVILLE5",
	"CARGOPLANE",
	"COG552",
	"COGNOSCENTI2",
	"DUKES2",
	"DUNE2",
	"DUNE3",
	"DUNE4",
	"DUNE5",
	"DUMP",
	"HYDRA",
	"INSURGENT",
	"INSURGENT2",
	"INSURGENT3",
	"JET",
	"KURUMA2",
	"LAZER",
	"LIMO2",
	"MARSHALL",
	"MONSTER",
	"RHINO",
	"SAVAGE",
	"SCHAFTER5",
	"SCHAFTER6",
	"SHEAVA",
	"SHOTARO",
	"SKYLIFT",
	"TECHNICAL",
	"TECHNICAL2",
	"TECHNICAL3",
	"TROPHYTRUCK",
	"TROPHYTRUCK2",
	"TUG",
	"VALKYRIE",
	"VALKYRIE2",
	"XLS2",
	"OPPRESSOR",
	"TAMPA3",
	"TRAILERSMALL2",
	"ARDENT",
	"HALFTRACK",
	"PHANTOM2",
	"RUINER2",
	"VOLTIC2",
	"WASTELANDER",
	"NIGHTSHARK",
	"CARTRAILER",
	"RAMPTRUCK",
	"HUNTER",
    "VIGILANTE",
    "BOMBUSHKA",
    "ROGUE",
    "ALPHAZ1",
    "STARLING",
    "TULA",
    "RIOT2",
    "AKULA",
    "AVENGER",
    "AVENGER2",
    "BARRAGE",
    "CHERNOBOG",
    "KHANJALI",
    "STROMBERG",
    "VOLATOL",
    "THRUSTER",
    "PYRO",
    "MOGUL",
    "NOKOTA",
    "BOMBUSHKA",
    "MOLOTOK",
    "MICROLIGHT",
    "REVOLTER",
	"DELUXO",
	"SEABREEZE",
	"CARACARA",
	"FBI",
	"FBI2",
	"PBUS",
	"POLICE",
	"POLICE2",
	"POLICE3",
	"POLICE4",
	"POLICEOLD1",
	"POLICEOLD2",
	"POLICET",
	"RIOT",
	"SHERIFF",
	"SHERIFF2",
}

-- Vehicles that are restricted for people below Owner (Admin, M3, M2, M1, Guest)
restrictedVehsSnrAdmin = 
{	
	"CAR1",
}

-- Vehicles that are restricted for people below Owner (M3, M2, M1, Guest)
restrictedVehsAdmin = 
{
	"STAFFARV",
	"WOOFWOOF",
}

-- Vehicles that are restricted for people below Owner (M2, M1, Guest)
restrictedVehsM3 = 
{
	"ARVX5",
	"ARVUNDERX5",
	"ARVUNDERS3",
	"TRAFFIC1",
	"TRAFFIC2",
	"TRAFFIC3",
	"TRAFFIC4",
	"FIRECAR",
	"FIRECAR2",
	"BTPVITO",
	"BTPIRV1",
	"BTPARV1",
	"POLICEB",
	"MPUNDERCAR1",
	"MPUNDERCAR2",
	"MPUNDERCAR3",
	"MPUNDERCAR4",
	"MEDIC1",
	"HART", 
	"AMBULANCEH",
	"POLMAV",
	"AW139",
	"AS350",
}

-- Vehicles that are restricted for people below M2 (M1, Guest)
restrictedVehsM2 = 
{
	"FIRETRUK2",
	"METAREA1",
	"METAREA2",
	"METT1",
	"METPOV1",
	"METRPU1",
	"METRPU2",
	"METRPU3",
	"METRPU4",
	"PRANGER",
	"MEDICFRV",
	"MEDICFRV2",
	"METIRV1",
	"METIRV2",
	"METIRV3",
	"METPT1",
	
}
--[[
	WEAPON SECTION

	NOTES

	x Explosive weapons are added into weaps.lua. To disable this edit the file or watch the video made by FAXES.
]]
-- Weapons that are restricted for people below owner (Snr Admin, Admin, M3, M2, M1, Guest)
restrictedWeapsGen = 
{
	"WEAPON_AIRSTRIKE_ROCKET",
	"WEAPON_ASSAULTSHOTGUN",
	"WEAPON_COMBATMG",
	"WEAPON_COMPACTLAUNCHER",
	"WEAPON_GRENADE",
	"WEAPON_GRENADELAUNCHER",
	"WEAPON_HOMINGLAUNCHER",
	"WEAPON_MG",
	"WEAPON_MINIGUN",
	"WEAPON_MOLOTOV",
	"WEAPON_PASSENGER_ROCKET",
	"WEAPON_PIPEBOMB",
	"WEAPON_PROXMINE",
	"WEAPON_RAILGUN",
	"WEAPON_REVOLVER",
	"WEAPON_RPG",
	"WEAPON_SMG",
	"WEAPON_SMG_MK2",
	"WEAPON_STICKYBOMB",
	"WEAPON_ASSAULTRIFLE_MK2",
	"WEAPON_CARBINERIFLE_MK2",
	"WEAPON_HEAVYSNIPER_MK2",
	"WEAPON_COMBATMG_MK2",
	"WEAPON_PISTOL_MK2",
}

-- Weapons that are restricted for people below M3 (M2, M1, Guest)
restrictedWeapsM3 = 
{
	"WEAPON_HEAVYSNIPER",
	"WEAPON_RIFLE_HEAVY",
	"WEAPON_SNIPERRIFLE",
	"WEAPON_SNOWBALL",
	"WEAPON_FLAREGUN",
}

-- Weapons that are restricted for people below M1 (Guest)
restrictedWeapsM1 =
{
	"WEAPON_MARKSMANPISTOL",
	"WEAPON_MARKSMANRIFLE",
	"WEAPON_SPECIALCARBINE",
}

--[[
	PED MODEL SECTION
]]
-- Switches back to the below ped when a user is in a blacklisted one.
newdmodel = GetHashKey("a_m_y_hipster_01")

-- Set staff / admin peds. These are blacklisted. Use /oda to go on duty as an admin.
restrictedPedsStaff =
{
	"s_m_y_seb_01",
	"s_m_y_seb_02",
}

-- Peds that are restricted for people below owner (Snr Admin, Admin, M3, M2, M1, Guest)
restrictedPedsAll = 
{
	"a_c_dolphin",
	"a_c_pigeon",
	"a_c_seagull",
	"a_c_killerwhale",
	"a_c_sharkhammer",
	"a_c_sharktiger",
	"a_c_stingray",
	"a_c_humpback",
	"a_c_fish",
	"a_c_chickenhawk",
	"a_c_chimp",
	"a_c_cormorant",
	"a_c_coyote",
	"a_c_hen",
	"a_c_rabbit_01",
	"a_c_rat",
	"a_c_rhesus",
	"a_c_mtlion",
	"ap_sp_dick",
	"ap_fra_ped",
	"S_M_M_MovAlien_01",
	"S_M_M_MovSpace_01",
	"U_M_Y_RSRanger_01",
	"U_M_Y_Zombie_01",
	"a_m_m_og_boss_01",
	"a_m_m_soucent_04",
	"a_c_chop",
	"a_c_cat_01",
	"a_c_shepherd",
	"a_c_cow",
	"a_c_crow",
	"a_c_deer",
	"a_c_husky",
	"a_c_pig",
	"a_c_boar",
	"a_c_poodle", 
	"a_c_pug",
	"a_c_retriever",
	"a_c_rottweiler",
	"a_c_westy",
}

-- Peds that are restricted for people below M3 (M2, M1, Guests)
restrictedPedsM3 = 
{
	"a_c_chimp",
	"a_c_cormorant",
	"a_c_coyote",
	"a_c_hen",
	"a_c_rabbit_01",
	"a_c_rat",
	"a_c_rhesus",
	"a_c_mtlion",
	"ap_sp_dick",
	"ap_fra_ped",
	"S_M_M_MovAlien_01",
	"S_M_M_MovSpace_01",
	"U_M_Y_RSRanger_01",
	"U_M_Y_Zombie_01",
	"a_m_m_og_boss_01",
	"a_m_m_soucent_04",
	"s_m_m_armoured_01",
	"s_m_m_armoured_02",
	"s_m_m_fibsec_01",
	"s_m_m_ciasec_01",
	"s_m_m_chemsec_01",
	"u_m_m_fibarchitect",
	"u_m_m_doa_01",
	"s_m_m_snowcop_01",
	"s_m_y_ranger_01",
	"s_f_y_ranger_01",
	"s_m_y_swat_01",
	"s_m_y_btp_01",
	"s_m_y_ucop_01",
}

-- Peds that are restricted for people below M2 (M1, Guests)
restrictedPedsM2 = 
{
}

-- Peds that are restricted for people below M1 (Guest)
restrictedPedsM1 = 
{
	"s_m_y_cop_01",
	"s_f_y_cop_01",
	"s_m_y_hwaycop_01",
	"s_f_y_hwaycop_01",
	"s_m_y_sheriff_01",
	"s_f_y_sheriff_01",
}

@FAXES after taking out military vehicles the whole fax system stops working!
Could you look at the two previous post to see if anything is off?

Did you remove the whole of statement or just that line?

1 Like

I don’t know what to delete I haven’t deleted anything.

Will start to incorporate this permission system into my resources. Great work!

Thanks man

@mattHuey If I can remember during today I’ll edit it and send it here…

1 Like

I appreciate that brother.

1 Like
if curAuthLvlRank < authLvlRank["Owner"] then
				for i = 1, #restrictedVehsGen do
					local rmodel1 = GetHashKey(restrictedVehsGen[i])
					if (model == rmodel1)  then
						ShowInfo("~r~Restricted Vehicle Model.")
						DeleteE(veh)
						ClearPedTasksImmediately(Faxped)
					end
				end
			end

@mattHuey That should work :wink:

1 Like