Yean I’m having this as well.
I ended up writing my own for now.
Wasn’t too hard added whitelists for Police vehicles, EMS, Fire, Civilian Operations vehicles etc.
any other script the can replaces this one
Not to my knowledge…
It’s simple write one, the functions are already written for you.
Could you just release yours? That’s easier than telling people to write their own.
No, mine is private on my server and won’t ever be released.
If you are that desperate, write it yourself.
it’s funny cause the FiveM ToS explictly say “share what you do”
Show me exactly where it says that, as I know for a fact, scripts and content do not have to be released.
haha lol. So where you still rewriting it?
idk lmao, haven’t gotten around doing it yet, maybe i will, maybe not
Yes share, however you are not obliged to share, therefor I will not be sharing, if you are that bothered do it yourself.
You know me I love being an asshole.
When you be releasing the script where certain people can only spawn certain cars. I really need this for my RP server.
Can you please add guns whitelist for weapons ? i dont know why but its not possible to blacklist all weapons from this list :
“WEAPON_KNIFE”, “WEAPON_NIGHTSTICK”, “WEAPON_HAMMER”, “WEAPON_BAT”, “WEAPON_GOLFCLUB”,
“WEAPON_CROWBAR”, “WEAPON_PISTOL”, “WEAPON_COMBATPISTOL”, “WEAPON_APPISTOL”, “WEAPON_PISTOL50”,
“WEAPON_MICROSMG”, “WEAPON_SMG”, “WEAPON_ASSAULTSMG”, “WEAPON_ASSAULTRIFLE”,
“WEAPON_CARBINERIFLE”, “WEAPON_ADVANCEDRIFLE”, “WEAPON_MG”, “WEAPON_COMBATMG”, “WEAPON_PUMPSHOTGUN”,
“WEAPON_SAWNOFFSHOTGUN”, “WEAPON_ASSAULTSHOTGUN”, “WEAPON_BULLPUPSHOTGUN”, “WEAPON_STUNGUN”, “WEAPON_SNIPERRIFLE”,
“WEAPON_HEAVYSNIPER”, “WEAPON_GRENADELAUNCHER”, “WEAPON_GRENADELAUNCHER_SMOKE”, “WEAPON_RPG”, “WEAPON_MINIGUN”,
“WEAPON_GRENADE”, “WEAPON_STICKYBOMB”, “WEAPON_SMOKEGRENADE”, “WEAPON_BZGAS”, “WEAPON_MOLOTOV”,
“WEAPON_FIREEXTINGUISHER”, “WEAPON_PETROLCAN”, “WEAPON_FLARE”, “WEAPON_SNSPISTOL”, “WEAPON_SPECIALCARBINE”,
“WEAPON_HEAVYPISTOL”, “WEAPON_BULLPUPRIFLE”, “WEAPON_HOMINGLAUNCHER”, “WEAPON_PROXMINE”, “WEAPON_SNOWBALL”,
“WEAPON_VINTAGEPISTOL”, “WEAPON_DAGGER”, “WEAPON_FIREWORK”, “WEAPON_MUSKET”, “WEAPON_MARKSMANRIFLE”,
“WEAPON_HEAVYSHOTGUN”, “WEAPON_GUSENBERG”, “WEAPON_HATCHET”, “WEAPON_RAILGUN”, “WEAPON_COMBATPDW”,
“WEAPON_KNUCKLE”, “WEAPON_MARKSMANPISTOL”, “WEAPON_FLASHLIGHT”, “WEAPON_MACHETE”, “WEAPON_MACHINEPISTOL”,
“WEAPON_SWITCHBLADE”, “WEAPON_REVOLVER”, “WEAPON_COMPACTRIFLE”, “WEAPON_DBSHOTGUN”, “WEAPON_FLAREGUN”,
“WEAPON_AUTOSHOTGUN”, “WEAPON_BATTLEAXE”, “WEAPON_COMPACTLAUNCHER”, “WEAPON_MINISMG”, “WEAPON_PIPEBOMB”,
“WEAPON_POOLCUE”, “WEAPON_SWEEPER”, “WEAPON_WRENCH”
Only 60% weapons from this list can be blacklisted (
For example i still can use “WEAPON_GRENADELAUNCHER_SMOKE”, “WEAPON_RPG”
hi i am having issues with some of my black list where pipe bombs, grenades and some weapons still spawn, can you help a noob out please lol
– Blacklisted weapons
weaponblacklist = {
“WEAPON_MINIGUN”,
“WEAPON_FIREWORK”,
“WEAPON_HEAVYSNIPER”,
“WEAPON_REMOTESNIPER”,
“WEAPON_GRENADE”,
“WEAPON_STICKYBOMB”,
“WEAPON_MOLOTOV”,
“WEAPON_GRENADELAUNCHER”,
“WEAPON_RPG”,
“WEAPON_HOMINGLAUNCHER”,
“WEAPON_RAILGUN”,
“WEAPON_AIR_DEFENCE_GUN”,
“WEAPON_COMPACTLAUNCHER”,
“WEAPON_PIPEBOMB”,
“GADGET_NIGHTVISION”
}
where am i going wrong?
ty in advance
just a up date i have the car blacklist perfect and i added all the weapons i want and checked the list loads of times still no luck
– CONFIG –
– Blacklisted weapons
weaponblacklist = {
“WEAPON_MINIGUN”,
“WEAPON_FIREWORK”,
“WEAPON_HEAVYSNIPER”,
“WEAPON_REMOTESNIPER”,
“WEAPON_GRENADE”,
“WEAPON_STICKYBOMB”,
“WEAPON_MOLOTOV”,
“WEAPON_GRENADELAUNCHER”,
“WEAPON_RPG”,
“WEAPON_HOMINGLAUNCHER”,
“WEAPON_RAILGUN”,
“WEAPON_AIR_DEFENCE_GUN”,
“WEAPON_COMPACTLAUNCHER”,
“WEAPON_PIPEBOMB”,
“GADGET_NIGHTVISION”,
“WEAPON_MG”,
“WEAPON_RPG”,
“WEAPON_PASSENGER_ROCKET”,
“WEAPON_BZGAS”,
“WEAPON_AIRSTRIKE_ROCKET”,
“WEAPON_ADVANCEDRIFLE”,
“WEAPON_HEAVYPISTOL”,
“WEAPON_HEAVYSHOTGUN”,
“WEAPON_HOMINGLAUNCHER”,
“WEAPON_PROXMINE”,
“WEAPON_SNOWBALL”,
“WEAPON_AIR_DEFENCE_GUN”,
“WEAPON_COMPACTLAUNCHER”,
“VEHICLE_WEAPON_SPACE_ROCKET”,
“VEHICLE_WEAPON_PLANE_ROCKET”,
“VEHICLE_WEAPON_PLAYER_LAZER”,
“VEHICLE_WEAPON_PLAYER_LASER”,
“VEHICLE_WEAPON_TURRET_INSURGENT”,
“VEHICLE_WEAPON_TURRET_TECHNICAL”,
“VEHICLE_WEAPON_PLAYER_SAVAGE”,
“VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE”,
“VEHICLE_WEAPON_TURRET_LIMO”,
“VEHICLE_WEAPON_TURRET_BOXVILLE”,
“VEHICLE_WEAPON_CANNON_BLAZER”,
“VEHICLE_WEAPON_RUINER_BULLET”
}
– Don’t allow any weapons at all (overrides the blacklist)
disableallweapons = false
– CODE –
Citizen.CreateThread(function()
while true do
Wait(1)
playerPed = GetPlayerPed(-1)
if playerPed then
nothing, weapon = GetCurrentPedWeapon(playerPed, true)
if disableallweapons then
RemoveAllPedWeapons(playerPed, true)
else
if whitelisted == nil and isWeaponBlacklisted(weapon) then
RemoveWeaponFromPed(playerPed, weapon)
sendForbiddenMessage("This weapon is blacklisted!")
end
end
end
end
end)
function isWeaponBlacklisted(model)
for _, blacklistedWeapon in pairs(weaponblacklist) do
if model == GetHashKey(blacklistedWeapon) then
return true
end
end
return false
end
here is the list code so you can see i haven’t tampered
no, this doesn’t and will NEVER support shitty RP frameworks.