mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
update readme export info
This commit is contained in:
23
README.md
23
README.md
@@ -23,4 +23,25 @@ But I want this script to grow with help of others who know more about other cor
|
|||||||
The installation of this script is simple
|
The installation of this script is simple
|
||||||
- it just needs to start before any script that requires it
|
- it just needs to start before any script that requires it
|
||||||
- it can start before core scripts if you want
|
- it can start before core scripts if you want
|
||||||
- for `qb-core` I personally place this script in `resources > [standalone]`
|
- for `qb-core` I personally place this script in `resources > [standalone]`
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Support for different exports and scripts
|
||||||
|
|
||||||
|
In exports.lua is the list of script folder names
|
||||||
|
|
||||||
|
This is for people who have customised/renamed scripts
|
||||||
|
|
||||||
|
eg. for people who use `ps-inventory`, this is mainly based on qb-inventory
|
||||||
|
so you need to rename
|
||||||
|
```lua
|
||||||
|
QBInv = "qb-inventory",
|
||||||
|
```
|
||||||
|
to
|
||||||
|
```lua
|
||||||
|
QBInv = "ps-inventory",
|
||||||
|
```
|
||||||
|
|
||||||
|
This will now use events from `ps-inventory` and use it through out the scripts.
|
||||||
@@ -95,11 +95,26 @@ function makeProp(data, freeze, synced)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function cv(amount)
|
function cv(amount)
|
||||||
local formatted = amount
|
local formatted = amount or "0"
|
||||||
while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k==0) then break end Wait(0) end
|
while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k==0) then break end Wait(0) end
|
||||||
return formatted
|
return formatted
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function DrawText3D(x, y, z, text)
|
||||||
|
SetTextScale(0.35, 0.35)
|
||||||
|
SetTextFont(4)
|
||||||
|
SetTextProportional(true)
|
||||||
|
SetTextColour(255, 255, 255, 215)
|
||||||
|
BeginTextCommandDisplayText("STRING")
|
||||||
|
SetTextCentre(true)
|
||||||
|
AddTextComponentSubstringPlayerName(text)
|
||||||
|
SetDrawOrigin(x,y,z, 0)
|
||||||
|
EndTextCommandDisplayText(0.0, 0.0)
|
||||||
|
local factor = string.len(text) / 370
|
||||||
|
DrawRect(0.0, 0.0 + 0.0125, 0.017 + factor, 0.03, 0, 0, 0, 75)
|
||||||
|
ClearDrawOrigin()
|
||||||
|
end
|
||||||
|
|
||||||
AddEventHandler('onResourceStop', function(r)
|
AddEventHandler('onResourceStop', function(r)
|
||||||
if r ~= GetCurrentResourceName() then return end
|
if r ~= GetCurrentResourceName() then return end
|
||||||
stopSpinner()
|
stopSpinner()
|
||||||
@@ -287,7 +302,7 @@ function progressBar(data)
|
|||||||
lockInv(false)
|
lockInv(false)
|
||||||
if data.cam then stopTempCam(data.cam) end
|
if data.cam then stopTempCam(data.cam) end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif Config.System.ProgressBar == "qb" then
|
elseif Config.System.ProgressBar == "qb" then
|
||||||
Core.Functions.Progressbar("mechbar",
|
Core.Functions.Progressbar("mechbar",
|
||||||
data.label,
|
data.label,
|
||||||
@@ -818,4 +833,4 @@ function StopEffects() -- Used to clear up any effects stuck on screen
|
|||||||
AnimpostfxStop('RaceTurbo')
|
AnimpostfxStop('RaceTurbo')
|
||||||
AnimpostfxStop('FocusIn')
|
AnimpostfxStop('FocusIn')
|
||||||
AnimpostfxStop('Rampage')
|
AnimpostfxStop('Rampage')
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user