andreiwow2 Posted May 28, 2017 Share Posted May 28, 2017 (edited) for i=1, 3 do if isElementInRange(sourcePlayer, payphones["PosX"..i], payphones["PosY"..i], payphones["PosZ"..i], 5) then outputChatBox("There is a payphone near you") else outputChatBox("There is no pay phone near you") end end Error: Quote attempt to call global 'isElementInRange' (a nil value) Edited May 28, 2017 by Dutchman101 Fix topic title for section requirements Link to comment
Tails Posted May 28, 2017 Share Posted May 28, 2017 (edited) Because the function doesn't exist. Copy the function over to your script. Anything under https://wiki.multitheftauto.com/wiki/Useful_Functions are functions made by users and aren't actual MTA functions. Edited May 28, 2017 by Tails 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now