I’ve been searching for days with no luck to find something like what I’m looking for. So I figured I’d put in the idea and perhaps someone with more lua knowledge than myself can look into creating it.
• Purpose: Script that allows spawning of vehicles only in certain zones. Vehicles can drive anywhere like they normally can. This is simply for spawning of vehicles.
• Reason: Garage systems all limit people into using just those garage systems. Also they are all esx/qbcore.
- This would be so that standalone servers could have something like whitelisted areas for spawning vehicles too. Without all the other stuff. Such as yes garages or parking lots perhaps but any defined area really even a main spawn on their server or whatever they want. Of course this is to prevent people from being jank and spawning them in the middle of the road or whatever you know like they can normally on standalone servers.
• Potential issue?
- Could we code it to where it knows the difference between if someone is spawning a vehicle versus if someone happened to just steal one/get into one or be seated-teleported into one.
• Features
-
These zones could be created with Polyzone [ GitHub - mkafrin/PolyZone: PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone ] or alternatively coordinates with a radius in config.
-
The script would need to detect if someone was outside of the allowed zones and then block the spawn and display a notification informing the person to go to an allowed area to spawn vehicles.
-
Bypass allowlist for admins with Ace Perms
Ideas?