| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 540 online users. » 0 Member(s) | 537 Guest(s) Bing, Baidu, Google
|
| Latest Threads |
The status of the INPC SD...
Forum: Support
Last Post: DLCode
2026-01-07, 07:33 AM
» Replies: 0
» Views: 34
|
SAMP server trailer
Forum: Videos and Screenshots
Last Post: pmemorex2016
2026-01-06, 02:34 PM
» Replies: 0
» Views: 36
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2026-01-03, 04:04 AM
» Replies: 9
» Views: 1,024
|
I recommend Xiaomi Rednot...
Forum: Tech
Last Post: NoxxeR
2026-01-03, 01:31 AM
» Replies: 0
» Views: 81
|
🌆 Final City RPG – Englis...
Forum: Advertisements
Last Post: Beanny
2026-01-02, 02:46 PM
» Replies: 0
» Views: 72
|
OLD GAMEMODE 0.3DL
Forum: Gamemodes
Last Post: su109551
2026-01-01, 06:59 PM
» Replies: 0
» Views: 114
|
Layanan cs Floa
Forum: General Discussions
Last Post: bratva
2025-12-31, 01:10 PM
» Replies: 5
» Views: 187
|
[ZA] ZOMBIE APOCALYPSE. ...
Forum: Advertisements
Last Post: AlCapone
2025-12-30, 12:02 PM
» Replies: 0
» Views: 87
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-30, 08:46 AM
» Replies: 2
» Views: 317
|
After School Roleplay - L...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-29, 09:47 PM
» Replies: 8
» Views: 651
|
|
|
| progress3D - Create progress bars in 3D space |
|
Posted by: Manyula - 2019-04-14, 01:30 PM - Forum: Libraries
- Replies (11)
|
 |
progress3D
![[Image: progress3-D.png]](https://i.ibb.co/gVby8wg/progress3-D.png)
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
![[Image: SAMPCTL-progress3D-03ef651]](https://img.shields.io/badge/SAMPCTL-progress3D-03ef651)
Functions
Code: 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.
Code: HideProgressBar3D(Bar3D:barid)
Hide the specified 3D progress bar. Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: ShowProgressBar3D(Bar3D:barid)
Shows the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: DestroyProgressBar3D(Bar3D:barid)
Destroys the specified progressbar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: Float:GetProgressBar3DValue(Bar3D:barid)
Returns the current progress value.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: SetProgressBar3DValue(Bar3D_barid, Float:value)
Updates the value of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: GetProgressBar3DColor(Bar3D_barid, color)
Returns the color of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: SetProgressBar3DColor(Bar3D_barid, color)
Updates the color of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: Float:GetProgressBar3DMaxValue(Bar3D:barid)
Returns the maximum value of the specified 3D progress bar.?Returns INVALID_GLOBAL_3D_BAR if bar doesn't exist.
Code: 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.
Code: 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.
---
Code: ?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.
Code: ?HidePlayerProgressBar3D(playerid, PlayerBar3D:barid)
Hides the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.
Code: ?ShowPlayerProgressBar3D(playerid, PlayerBar3D:barid)
Shows the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.
Code: ?DestroyPlayerProgressBar3D(playerid, PlayerBar3D:barid)
Destroys a 3D player progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.
Code: ?Float:GetPlayerProgressBar3DValue(playerid, PlayerBar3D:barid)
Returns the current progress value. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.
Code: ?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.
Code: ?GetPlayerProgressBar3DColor(playerid, PlayerBar3D:barid)
Returns the color of the specified player 3D progress bar. Returns INVALID_PLAYER_3D_BAR if bar doesn't exist.
Code: ?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.
Code: ?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.
Code: ?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.
Code: ?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.
|
|
|
|
Agregar mas categorias |
|
Posted by: Marg - 2019-04-14, 12:00 PM - Forum: Spanish/Espa?ol
- Replies (19)
|
 |
Categorias
Pienso que deberian agregar ya mas categorias a la secci?n espa?ol , portugues , rusa y otros... , en especial espa?ol ya que es la secci?n que tiene actualmente mas actividad y mas conocen sobre la existencia de?este proyecto.
Ejemplo:
>Informaci?n
>Sugerencias
>Ayuda
>Pedidos
>Mapas
>Scripts
|
|
|
|
|