Git Product home page Git Product logo

Comments (8)

mkafrin avatar mkafrin commented on August 20, 2024

Are you entering and exiting the zone with the player? The onPlayerInOut callback doesn't trigger continuously, it only triggers if you go from outside the zone to in it, or vice versa. If you are and it's still not working, do you have overlapping zones? Aka multiple zones in the same place, or one large zone with smaller ones inside of it? If so, you may need to use the exhaustive helpers since onPlayerInOut stops after it finds the first zone you are inside of (see https://github.com/mkafrin/PolyZone/wiki/ComboZone#exhaustive-helpers).

Also, are you getting any errors (from your script or PolyZone) in the console?

from polyzone.

ali-exacute avatar ali-exacute commented on August 20, 2024

hey

  1. yes i am entering and exiting the zone
  2. no there are no overlapping zones at all
  3. sadly there are no errors

from polyzone.

mkafrin avatar mkafrin commented on August 20, 2024

Hmm given that, it'd be hard for me to determine what's going wrong without a reproduction of the issue. Can you take your current code and shorten it to a simple and repeatable reproduction of the issue and post that here? Then I can look into why it's happening.

from polyzone.

PolEpie avatar PolEpie commented on August 20, 2024

Hi, i have the same thing while drawing a 3d on a separate thread on function ComboZone:new(zones, options)
idk why it happend but all ComboZone stop working and my text work pretty fine ! To fix it i need to reinstall my server cause even on removing my function call on the new function it still not working then even after reboot.
Like ali said there is no errors

from polyzone.

PolEpie avatar PolEpie commented on August 20, 2024

Code here to reproduce https://gist.github.com/PolEpie/ef4cefd55dcaa3888d91ee715da5e79f

from polyzone.

mkafrin avatar mkafrin commented on August 20, 2024

This doesn't seem to be a PolyZone issue. Adding a call to your own code to PolyZone's files then it breaking seems to point to your own code having a bug. Closing this for now.

from polyzone.

PolEpie avatar PolEpie commented on August 20, 2024

The fact is that is permanently broke poly zone with just one line of code and then it still broke even If i delete the code so there might be an issue somewhere. Iā€™m new in five m coding so if you can help me to understand why ? Is there a thread limit ?

from polyzone.

mkafrin avatar mkafrin commented on August 20, 2024

I have no idea why it might be breaking and I'm sorry but I frankly don't have the time to debug other resources code. You can try asking in help channels in the fivem discord or forums. If I were you, I'd test your code (and attempt to fix it) outside the context of PolyZone, since PolyZone breaking is just a symptom of your code that you inserted into it breaking.

from polyzone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.