All Projects → mkafrin → PolyZone

mkafrin / PolyZone

Licence: MIT license
PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to PolyZone

altv-typescript
A Typescript Boilerplate for alt:V with simple setup and usage.
Stars: ✭ 32 (-76.47%)
Mutual labels:  fivem
chat
FiveM Chat System | Works off ESX Framework
Stars: ✭ 32 (-76.47%)
Mutual labels:  fivem
Re-Ignited-Phone
ReIgnited Phone is a continuation and reimagination of the original GCPhone resource
Stars: ✭ 55 (-59.56%)
Mutual labels:  fivem
fivem-react-boilerplate
FiveM + React 🐌
Stars: ✭ 21 (-84.56%)
Mutual labels:  fivem
esx advancedbanking
Advanced Banking for FiveM ESX Legacy
Stars: ✭ 18 (-86.76%)
Mutual labels:  fivem
Lua-Obfuscator
Obfuscate your lua code because it's so easy to steal!
Stars: ✭ 69 (-49.26%)
Mutual labels:  fivem
lgsl
LGSL v6.2.0 for PHP 5.4-8.2.0dev (Live Game Server List): online status for Discord, FiveM, Rust, CS, SA:MP, GMOD, Minecraft, Source Query, etc.
Stars: ✭ 101 (-25.74%)
Mutual labels:  fivem
esx scoreboard
esx - scoreboard | A user friendly scoreboard for your server ;)
Stars: ✭ 28 (-79.41%)
Mutual labels:  fivem
interact-sound
A resource providing the ability to play sounds using the FiveM NUI environment.
Stars: ✭ 48 (-64.71%)
Mutual labels:  fivem
menuv
FiveM menu library for creating menu's with NUI
Stars: ✭ 85 (-37.5%)
Mutual labels:  fivem
snaily-cadv3
> https://github.com/SnailyCAD/snaily-cadv4
Stars: ✭ 37 (-72.79%)
Mutual labels:  fivem
esx menu default
ESX Menu Style for FXSERVER gtaonline style
Stars: ✭ 30 (-77.94%)
Mutual labels:  fivem
esx advancedvehicleshop
Advanced Vehicle Shops for FiveM ESX Legacy
Stars: ✭ 28 (-79.41%)
Mutual labels:  fivem
fivem-vstancer
ikt's VStancer as resource for FiveM servers to synchronize the edited vehicles with all the players.
Stars: ✭ 37 (-72.79%)
Mutual labels:  fivem
gb banking
FiveM Extended Banking Script
Stars: ✭ 14 (-89.71%)
Mutual labels:  fivem
fivem-ipl
The ultimate IPL loader for FiveM
Stars: ✭ 26 (-80.88%)
Mutual labels:  fivem
utk render
Render game view to html canvas element
Stars: ✭ 40 (-70.59%)
Mutual labels:  fivem
FiveM-Paid-Anticheats
Fivem Anticheat's sources, cracks and other shit have fun with it. Remember API > ALL https://discord.gg/stz4nCkhZp
Stars: ✭ 35 (-74.26%)
Mutual labels:  fivem
pma-voice
An easy drag n' drop resource that gives you a wrapper to use FiveM's built-in mumble voice.
Stars: ✭ 160 (+17.65%)
Mutual labels:  fivem
fivem-mysql-async
MySql Async Library for FiveM
Stars: ✭ 105 (-22.79%)
Mutual labels:  fivem

PolyZone

PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone

PolyZone around the prison

Download

Click here to go to the releases page and download the latest release

Using PolyZone in a Script

In order to use PolyZone in your script, you must at least include PolyZone's client.lua directly in your __resource.lua or fxmanifest.lua. You can do that by using FiveM's @ syntax for importing resource files:

client_scripts {
    '@PolyZone/client.lua',
    'your_scripts_client.lua',
}

This will allow you to create PolyZones in your script, but will not import other zones, such as CircleZone, BoxZone, etc. All the other zones are extra, and require their own explicit imports. Here is a client_scripts value that will include all the zones. Note the relative order of these imports, as the ordering is necessary! Many zones rely on each other, for example EntityZone inherits from BoxZone, and all zones inherit from PolyZone (client.lua).

client_scripts {
  '@PolyZone/client.lua',
  '@PolyZone/BoxZone.lua',
  '@PolyZone/EntityZone.lua',
  '@PolyZone/CircleZone.lua',
  '@PolyZone/ComboZone.lua',
  'your_scripts_client.lua'
}

Documentation

For additional information on how to use PolyZone, please take a look at the wiki

Troubleshooting and Support

For help troubleshooting issues you've encountered (that aren't in the FAQ), or to suggest new features, use the issues page. Just a reminder though, I do this in my free time and so there is no guarantee an issue will be fixed or a feature will be added. In lieu of my limited time, I will prioritize issues and bugs over features.

FAQ - Frequently Asked Questions

I'm getting the error attempt to index a nil value when creating a zone, what's wrong?

Did you include all the necessary scripts in your __resource.lua or fxmanifest.lua? Remember some zones require other zones, like EntityZone.lua requires BoxZone.lua and BoxZone.lua requires client.lua.

I'm getting no errors, but I can't see my zone in the right place when I turn on debug drawing

If you are using them, is minZ and maxZ set correctly? Or if you are using a CircleZone with useZ=true, is your center's Z value correct? If using a PolyZone, did you manually select all your points, or use the creation script? If you did it manually, the ordering of the points could be causing issues. Are you using the correct option to enable debug drawing? For PolyZones, you can use debugPoly and debugGrid, but for other zones, debugPoly is the only one that works.

Is PolyZone faster than a distance check?

There's a page in the wiki for that, here.

License

Please see the LICENSE file. That file will always overrule anything mentioned in the README.md or wiki

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].