Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

progress3D - Create progress bars in 3D space

progress3D

ID
d6ouivfilegovhg7b4d0
author
manyula's avatar

Manyula

@manyula


View profile
Copy link
  Report member
started
Apr 14, 2019
replies
11
participating
No

scroll to top

powered by storyden

Login
Discussion
Libraries
progress3D - Create progress bars in 3D space
manyula's avatar

Manyula

@manyula


View profile
Copy link
  Report member
• 7y
Libraries

progress3D - Create progress bars in 3D space

library

progress3D



After the 2D textdraw-based version of progress bars, here now comes the 3D version. This library lets you create progress bars in 3D space. It's basically just two overlapping 3D text labels, one being moved slightly to the right to fill in the gaps between the characters.

Repository



Functions

Bar3D:CreateProgressBar3D(color, bool:borders, Float:x, Float:y, Float:z, Float:max_value, Float:init_value, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0)



Creates a 3D progress bar. Returns INVALID_3D_BAR if bar already exists.

HideProgressBar3D(Bar3D:barid)



Hide the specified 3D progress bar. Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

ShowProgressBar3D(Bar3D:barid)



Shows the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

DestroyProgressBar3D(Bar3D:barid)



Destroys the specified progressbar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

Float:GetProgressBar3DValue(Bar3D:barid)



Returns the current progress value.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

SetProgressBar3DValue(Bar3D_barid, Float:value)



Updates the value of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

GetProgressBar3DColor(Bar3D_barid, color)



Returns the color of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

SetProgressBar3DColor(Bar3D_barid, color)



Updates the color of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

Float:GetProgressBar3DMaxValue(Bar3D:barid)



Returns the maximum value of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

SetProgressBar3DMaxValue(Bar3D:barid, Float:max_value)



Updates the maximum value of the specified 3D progress bar. Returns 0 if the max value is smaller than the current value.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

IsValidProgressBar3D(Bar3D:barid)



Returns 1, if the specified 3D progress bar ID is valid and exists.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

---

?PlayerBar3D:CreatePlayerProgressBar3D(playerid, color, bool:borders, Float:x, Float:y, Float:z, Float:max_value, Float:init_value, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0)



Creates a player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar already exists.

?HidePlayerProgressBar3D(playerid, PlayerBar3D:barid)



Hides the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?ShowPlayerProgressBar3D(playerid, PlayerBar3D:barid)



Shows the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?DestroyPlayerProgressBar3D(playerid, PlayerBar3D:barid)



Destroys a 3D player progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?Float:GetPlayerProgressBar3DValue(playerid, PlayerBar3D:barid)



Returns the current progress value. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?SetPlayerProgressBar3DValue(playerid, PlayerBar3D:barid, Float:value)



Updates the value of the specified player 3D progress bar. Returns 0 if value is greater than max value. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?GetPlayerProgressBar3DColor(playerid, PlayerBar3D:barid)



Returns the color of the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?SetPlayerProgressBar3DColor(playerid, PlayerBar3D:barid, color)



Updates the color of the specified player 3D progress bar. Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.

?Float:GetPlayerProgressBar3DMaxValue(playerid, PlayerBar3D:barid)



Returns the maximum value of the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?SetPlayerProgressBar3DMaxValue(playerid, PlayerBar3D:barid, Float:max_value)



Updates the maximum value of the specified player 3D progress bar. Returns 0 if the max value is smaller than the current value. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

?IsValidPlayerProgressBar3D(playerid, PlayerBar3D:barid)



Returns 1, if the specified player 3D progress bar ID is valid and exists. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.

0 likes11 replies
  1. mugsy's avatar

    Mugsy

    @mugsy


    View profile
    Copy link
      Report member
    • 7y

    Wow, excelent.

  2. sys's avatar

    SyS

    @sys


    View profile
    Copy link
      Report member
    • 7y

    Interesting and nice idea

  3. ispark's avatar

    iSpark

    @ispark


    View profile
    Copy link
      Report member
    • 7y

    I can see myself using this in the near future

  4. rocky-balboa's avatar

    Rocky Balboa

    @rocky-balboa


    View profile
    Copy link
      Report member
    • 7y

    Wow great job

  5. tommyb's avatar

    TommyB

    @tommyb


    View profile
    Copy link
      Report member
    • 7y

    that's fucking rad, good work

  6. gravityfalls's avatar

    Gravityfalls

    @gravityfalls


    View profile
    Copy link
      Report member
    • 7y

    Amazing idea.

  7. markski's avatar

    Markski

    @markski


    View profile
    Copy link
      Report member
    • 7y

    Very interesting idea, never thought of anything like this. Will have a play with it.

  8. sasino97's avatar

    Sasino97

    @sasino97


    View profile
    Copy link
      Report member
    • 6y

    You could add these progress bars on pickup-able items in a survival mode to display their damage ??

  9. byhgglryz's avatar

    ByHgGlryz

    @byhgglryz


    View profile
    Copy link
      Report member
    • 6y

    Good Work! :)

  10. manyula's avatar

    Manyula

    @manyula


    View profile
    Copy link
      Report member
    • 6y

    Check out the newest version, it comes with borders ;)

  11. metro's avatar

    Metro

    @metro


    View profile
    Copy link
      Report member
    • 6y

    Manyula said:

    Check out the newest version, it comes with borders ;)









    image is broken

Please sign up or log in to reply