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
MIT License
204 stars 191 forks source link

Failed Load #36

Closed JiminyKroket closed 3 years ago

JiminyKroket commented 3 years ago

image I unfortunately am no longer able to use latest artifacts, so had to install the Cayo Perico streamed map, which requires your PolyZone. Upon initial installation I receive this message, with no indication of why it failed. If I restart polyzone while in game, I get no error though. Is there something I'm missing like waiting for spawn?

mkafrin commented 3 years ago

@JiminyKroket Hmm, two thoughts:

  1. Did you "ensure PolyZone" in your server.cfg before ensuring the cayoperico resource?
  2. Did you extract PolyZone.zip into the top level of the resources folder or only under further folders that have square brackets (i.e. resources/[stuff]/PolyZone)? If not, what does the path to the resource look like?
mkafrin commented 3 years ago

@JiminyKroket Still having issues?

JiminyKroket commented 3 years ago

I am very sorry for the delayed response. image I am ensuring polyzone above the cayoperico script. I did rename them both to lowercase when removing the "-master" from the zip downloads, is that not okay for polyzone? image Here is the directory of where polyzone is stored in my resources folder

mkafrin commented 3 years ago

Yeah, the lowercase is the issue. PolyZone should be named exactly as "PolyZone". You'll notice in the error you posted it says "failed to load script @PolyZone/client.lua". Because you made it lowercase, it can't find @PolyZone. Change the folder name to "PolyZone" and same for the ensure in resources.cfg and it should work.

JiminyKroket commented 3 years ago

You are 100 percent correct, I'm sorry to have bothered you.

mkafrin commented 3 years ago

@JiminyKroket NP, glad we could fix it.