Comments (4)
Thanks for the explanation! For now I'll use ps-zones until you release an official resource. Have a nice day
from polyzone.
ps-zones is a good one! Have a nice day as well!
from polyzone.
PZ is done in lua because of access to the much faster native vectors. Adding exports to directly call things like isPointInside would introduce massive overhead. In the past the way to get JS support has been to have a PZ manager script in lua that has a combozone that keeps track of all zones, exports to add zones to that combozone, and then it fires off events for when the player goes in and out of zones. Many third party scripts for this exist, though I may make an official one at some point. Direct JS support or exports isn't in the cards right now tho.
from polyzone.
Actually ps-zones doesn't have an export for testing if a point is inside a zone and the export for creating Boxzone and circlezone doesn't support javascript, as it doesnโt convert the coordinates { x: 1, y: 1 } to a vector. Could you recommend me another pz manager script that does all of that or give me an estimate when you're gonna make an official one?
from polyzone.
Related Issues (20)
- When trying to use qb-target in server I keep getting this error HOT 1
- csharp HOT 1
- Weird polyzone bug HOT 1
- QUESTION HOT 2
- Polyzones linking together HOT 1
- Combo onPlayerInOut method not getting triggered HOT 8
- Not an Issue, Vehicle delete outside of Zone
- [QUESTION] Is there any way to edit inside the zone? HOT 1
- scroll down not working when working on zone
- [Potential Bug?] HOT 2
- Warning: Passed points table with less than 3 points to PolyZone:Create () {name=test}
- [HELP] Bug or misunderstanding HOT 1
- Need help on code. HOT 2
- Problem in isPointInside when use circlezone HOT 1
- pzdebug command HOT 5
- Regarding Issue #90 HOT 2
- pzcreate box HOT 4
- Attempt to index a nil value HOT 1
- attempt to index a nil value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyzone.