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.

[Solved]How to make a random callout location?

Featured Replies

I need my callout to be at a random location, just like any other callout. How do i do that?

(It currently spawns in front of me)

 

What i currently use:

SpawnPoint = World.GetNextPositionOnStreet(Game.LocalPlayer.Character.Position.Around(250f));

 

 

Do i have to use alot of different coordinates or is there a feature for minimum callout range in the reference.

My last resort is going around the map collecting coordinates.

 

I manage to do everything succesfull besides this haha

 

Edited by Faya

🇳🇱

  • The title was changed to How to make a random callout location?
  • Management Team

It really depends on what you want and need. You can collect coordinates and use them randomly, or based on distance to the player if you want predefined locations. If you can make with generic locations, you can also just get random points around the player (use the Around function with different random values). 

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • The title was changed to [Solved]How to make a random callout location?

I sorta answered this in your other support topic. The .Around function needs a minimum and maximum distance for what you're trying to do. This will find a spot on a road within these ranges. If it's spawning too close then raise 190 to a higher number. If it's too far away then lower 500 to a lower number. It's also a good idea to add a little while loop with a count timer so your code never hangs while trying to find a position.

 

World.GetNextPositionOnStreet(Game.LocalPlayer.Character.Position.Around(190, 500)); // (closest position to player, furthest position to player)

 

 

lspdfrsig.png.9270aca86574b7a164a861f72ccd502d.png

Find all of my LEGACY projects (GTA: SA) plus more in-depth support of current projects on my modding index.

(ONLY my personal work is available and supported on the index)

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.