News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Function to clear / delete vehicles near Jimmy  (Read 1309 times)

0 Members and 1 Guest are viewing this topic.

Offline brelins

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Function to clear / delete vehicles near Jimmy
« 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:

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 294
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Function to clear / delete vehicles near Jimmy
« Reply #1 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)