Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How would I clear an area?

Featured Replies

I'm making a bank robbery callout, and the preset peds and cars sometimes spawn on top of other cars, that were there before the callout. Would there be a way to clear the area, maybe like a function, with an x and y parameter, that removes all objects within an area?

NativeFunction.CallByName<uint>("CLEAR_AREA", pos.X, pos.Y, pos.Z, 250f, 0, 0, 0, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_PEDS", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_PEDS


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_VEHICLES", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_VEHICLES


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_OBJECTS", pos.X, pos.Y, pos.Z, 250f;

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_OBJECTS

7 hours ago, AlconH said:

NativeFunction.CallByName<uint>("CLEAR_AREA", pos.X, pos.Y, pos.Z, 250f, 0, 0, 0, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_PEDS", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_PEDS


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_VEHICLES", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_VEHICLES


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_OBJECTS", pos.X, pos.Y, pos.Z, 250f;

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_OBJECTS

Oh wow, those are super useful. Thank you and thanks OP for asking about this, never knew about these natives :p

On 4/11/2017 at 3:35 AM, AlconH said:

NativeFunction.CallByName<uint>("CLEAR_AREA", pos.X, pos.Y, pos.Z, 250f, 0, 0, 0, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_PEDS", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_PEDS


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_VEHICLES", pos.X, pos.Y, pos.Z, 250f, 0);

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_VEHICLES


NativeFunction.CallByName<uint>("CLEAR_AREA_OF_OBJECTS", pos.X, pos.Y, pos.Z, 250f;

https://www.gtamodding.com/wiki/CLEAR_AREA_OF_OBJECTS

 

This is not the recommended way to call natives. MulleDK recommends avoiding the CallByName/CallByHash method. Also, as of RPH 0.51, you can pass a Vector3 directly into a native and it'll automatically get expanded to three floats being passed to the underlying native. 

 

NativeFunction.Natives.ClearAreaOfPeds(pos, 250f, 0);

 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

7 hours ago, PNWParksFan said:

 

This is not the recommended way to call natives. MulleDK recommends avoiding the CallByName/CallByHash method. Also, as of RPH 0.51, you can pass a Vector3 directly into a native and it'll automatically get expanded to three floats being passed to the underlying native. 

 


NativeFunction.Natives.ClearAreaOfPeds(pos, 250f, 0);

 

My bad, was something I'd found elsewhere and bookmarked.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.