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
202 stars 193 forks source link

Attempt to index a nil value #95

Closed KaasKaasKaasKaas closed 10 months ago

KaasKaasKaasKaas commented 10 months ago

look i tought i fortgot to add something to fxmanifest.lua but i didnt i think look

[games {'gta5'}

fx_version 'cerulean'

description 'Define zones of different shapes and test whether a point is inside or outside of the zone'
version '2.6.0'

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

server_scripts {
  'server.lua'
}]

and this is my server.lua

local CircleZone = CircleZone:Create(vector3(-1281.17, -417.77, 34.69), 3.0, {
    name="circle_zone",
    debugPoly=true,
})

i dont see the problem anyone that can help?

KaasKaasKaasKaas commented 10 months ago

MAKE SURE TO PUT THE CODE TO CREATE A ZONE ON THE CLIENT SIDE!!!!!