fivem scripting local CarScraps = { {x = -435.79, y = -1711.64, z = 18.99, h = 87.26},…
- User
fivem scripting local CarScraps = { {x = -435.79, y = -1711.64, z = 18.99, h = 87.26}, {x = -447.42, y = -1709.48, z = 18.78, h = 184.49}, {x = -471.9, y = -1702.52, z = 18.65, h = 82.13}, {x = -494.41, y = -1758.18, z = 18.5, h = 63.84}, {x = -499.02, y = -1755.84, z = 18.42, h = 178.39}, {x = -507.02, y = -1741.27, z = 18.92, h = 140.46}, {x = -512.04, y = -1754.40, z = 18.91, h = 73.14}, {x = -481.83, y = -1761.43, z = 18.78, h = 244.49}, {x = -548.84, y = -1712.95, z = 18.85, h = 160.22}, {x = -571.27, y = -1706.56, z = 18.98, h = 126.39}, {x = -546.33, y = -1654.05, z = 19.31, h = 348.94}, {x = -533.94, y = -1615.74, z = 17.8, h = 66.16}, {x = -491.35, y = -1653.08, z = 17.8, h = 159.07}, }
I've got this array of locations.
I want to detect what one is closest to my player ped and add a cooldown to that one so nobody can do it
- Assistant
You can use the following code to achieve this:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.