esx-community / esx_doorlock

ESX door lock!
GNU General Public License v3.0
15 stars 60 forks source link

SCRIPT ERROR: attempt to compare number with nil #37

Open 0x01422 opened 4 years ago

0x01422 commented 4 years ago

SCRIPT ERROR: @esx_doorlock/client/main.lua:85: attempt to compare number with nil

Here is line 85-86: if v.distanceToPlayer and v.distanceToPlayer < v.maxDistance then local size, displayText = 1, _U('unlocked')

maikelpnl commented 4 years ago

add distance in config.lua worked for me

OnyxException commented 4 years ago

So maxDistance = 2.5, or so distance = 2.5,