fix(esx_progressbar): Fixed missing })

Also changed a bit of the formatting to make it a bit easier to read for the average joe
This commit is contained in:
JohnnyS
2022-05-23 16:55:15 -04:00
committed by GitHub
parent a48f01c905
commit 0c5d97a214
+21 -2
View File
@@ -2,11 +2,30 @@
* ESX Function
```lua
ESX.Progressbar("test", 25000,{FreezePlayer = false, animation ={type = "anim",dict = "mini@prostitutes@sexlow_veh", lib ="low_car_sex_to_prop_p2_player" }, onFinish = function()
ESX.Progressbar("test", 25000,{
FreezePlayer = false,
animation ={
type = "anim",
dict = "mini@prostitutes@sexlow_veh",
lib ="low_car_sex_to_prop_p2_player"
},
onFinish = function()
--Code here
end})
```
* Export
```lua
exports["esx_progressbar"]:Progressbar("test", 25000,{FreezePlayer = false, animation ={type = "anim",dict = "mini@prostitutes@sexlow_veh", lib ="low_car_sex_to_prop_p2_player" }, onFinish = function()
exports["esx_progressbar"]:Progressbar("Unlocking Storage", 3000,{
FreezePlayer = true,
animation ={
type = "anim",
dict = "anim@mp_player_intmenu@key_fob@",
lib ="fob_click"
},
onFinish = function()
--Code here
end})
```