I need a small help because I don't know how to do something in Lua!
I have this:
1
2
3
4
5
2
3
4
5
SPAWNS = { 	FULLMAP = {{0, 0}, {135, 208}}, 	TOPHALF = {{0, 0}, {74, 92}}, 	BOTTOMHALF = {{0, 100}, {150, 249}}, }
And I'm planning to add more things inside it!
I want that to work on a function to find where is a player like that:
1
2
3
4
5
6
2
3
4
5
6
function getLocation(id) 	for k,v in pairs(SPAWNS) do 		 	end 	return "outOfMapBounds" end
But I don't know how the IF should look like
Plz Help!