Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: brelins on October 05, 2023, 08:02:18 PM

Title: Function to clear / delete vehicles near Jimmy
Post by: brelins on October 05, 2023, 08:02:18 PM
I'm making a simple car spawn menu and i realized that 15 is the limit to spawn vehicles, so i was wondering if there's a function to clear all vehicles near jimmy or a certain radius? And how can i use? Thx f :confused:
Title: Re: Function to clear / delete vehicles near Jimmy
Post by: SimonBestia on October 06, 2023, 05:06:50 AM
You could use VehicleIsInAreaXYZ to check for saved vehicles around certain coordinates, then delete them if detected.
Code: [Select]
VehicleIsInAreaXYZ(vehicle, x, y, z, radius, 0)