Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRIPT ERROR: attempt to compare number with nil #37

Open
0x01422 opened this issue May 30, 2020 · 2 comments
Open

SCRIPT ERROR: attempt to compare number with nil #37

0x01422 opened this issue May 30, 2020 · 2 comments

Comments

@0x01422
Copy link

0x01422 commented May 30, 2020

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')

@0x01422 0x01422 changed the title Error parsing script. SCRIPT ERROR: attempt to compare number with nil May 30, 2020
@maikelpnl
Copy link

add distance in config.lua worked for me

@OnyxException
Copy link

So
maxDistance = 2.5,
or so
distance = 2.5,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants