Jump to content

Get state of traffic stop?


darkfire59

Recommended Posts

While the suspect is stopped I want to have a script run. However, I can't seem to figure out how I do this, how would I check if the suspect is stopped? I've looked through the LSPDFR code, and it's certainly possible to do, I just don't know how to go about doing it.

Okay, not tested yet, but as an update I think this is how you would get state that the traffic stop is in, please correct me if I'm wrong

LSPD_First_Response.TrafficStop.ETrafficStopState state = LSPD_First_Response.TrafficStop.ETrafficStopState.SuspectStops;
            while (true)

 

Link to comment
Share on other sites

  • Management Team

This class shouldn't be public -- please ignore it. It may generate unexpected behaviour or give inaccurate results. You should only make use of the API namespace, all other namespaces will be marked internal and will disappear in future releases.

That being said, we can mark this as a feature request and add it to the API.

Imitation is the sincerest form of flattery.

Link to comment
Share on other sites

This class shouldn't be public -- please ignore it. It may generate unexpected behaviour or give inaccurate results. You should only make use of the API namespace, all other namespaces will be marked internal and will disappear in future releases.

That being said, we can mark this as a feature request and add it to the API.

It would likely be a useful feature, it would be wonderful if you could mark this as a feature request.

This class shouldn't be public -- please ignore it. It may generate unexpected behaviour or give inaccurate results. You should only make use of the API namespace, all other namespaces will be marked internal and will disappear in future releases.

That being said, we can mark this as a feature request and add it to the API.

Would "IsPlayerPerformingPullover" include all of the states, so it would be true when you're in any state of the pull over? If so that would do for now.

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