Jump to content

[Solved] Is it possible to set a call out to spawn at a specific location?


OJS

Recommended Posts

Hello everyone. I am trying to develop my first plugin, but I was wondering through programming the addon is it possible to set set my call out to spawn on a specific street in the game? I am learning from ToastinYou's post at: 

And I notice they are showing us how to make a pursuit in progress call out specifically, but if I am reading the code correctly it is choosing the spawn point to be on any street within 300f of the players current street. As stated by the line of code below:

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

Here is my question, under "Game" is their a way to call a specific street name or do I need to use co-ordinates? And if I do have to use co ordinates how do I get those co-ordinates from the game? You see I am trying to make a call out plugin that focuses around the Blaine County area and the first call out on my list is one that happens at a store. Any help would be gladly appreciated. In the meantime I will look through all that is available under "Game."

Edited by OfficerJohnnyShumway
Question has been solved.
Link to comment
Share on other sites

  • Management Team

It is easiest to get coordinates, yes. In-game, drive to where  you want it to spawn and you can type in PrintInfo in the console to display coordinates.

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

Link to comment
Share on other sites

4 hours ago, LMS said:

It is easiest to get coordinates, yes. In-game, drive to where  you want it to spawn and you can type in PrintInfo in the console to display coordinates.

OMG Thank you so much!

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...