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.

Mr01sam

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.7k
Customers served
Files Sold
155.2k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.