Jump to content

Adding a new API: BarExists or HasStatus

Not a Bug 1.2.6

Scalbox
Scalbox

Posted

Hi, it is possible to add a new API, through which I can know if a status bar already exists, for example:

BarExists or HasStatus.

In the old Custom Status Framework plugin there was the HasStatus API, but in the Simple Status plugin there is no similar API.

It would be useful to add it here too, send where to look at the data file.

Thanks

Mr01sam

Posted

On 8/31/2024 at 5:59 AM, Scalbox said:

Hi, it is possible to add a new API, through which I can know if a status bar already exists, for example:

BarExists or HasStatus.

In the old Custom Status Framework plugin there was the HasStatus API, but in the Simple Status plugin there is no similar API.

It would be useful to add it here too, send where to look at the data file.

Thanks

You can use the GetDuration method for this. If the value returned != 0, then the player has that status. For statuses that have an unlimited duration, it will return a max value integer.

  • Like 1
Mr01sam

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.