Skip to content

Ability to register callbacks for Ped events #18

Description

@LSPDFR-PeterU

I'd love the ability to be able to register callback methods for pertinent events.

For example, right now, I determine whether or not a Ped has been 'stopped' and then issued a warning by polling for Functions.IsPedStoppedByPlayer and determining if the result has changed since the last time I ran it. This works, but I don't actually know if a citation was issued, or if it was actually a warning that was given.

An ability to register a callback method for this kind of event (pullovers too!) would save polling (especially over a larger number of Peds, presumably this has a performance impact) and avoid a fairly significant burden of evaluating and checking state information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions