Skip to content

Callout requirements - only show a call when requirements are met #10

@HB-2012

Description

@HB-2012

As a callout developer I'd like to be able to set callout requirements. I'd like to prevent the callout from showing up at all when requirements are not met.

Possible use cases:

  • Only allow the callout to be shown when the time in game is between 9PM and 3AM.
  • Only allow callout when ped skin is firefighter.
  • Only allow callout when it is raining.

I think this can be done rather easily without breaking backwards compatibility too much. My suggestion would be to set a flag in the InitBase method which tells the CalloutManager if the script has been initialized and ready for use or not. If not, the CalloutManager should try a different callout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis feature has been accepted and will be available in the next updatefeature requestNew feature that would make the API better.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions