Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

lalBi94/ZODWorks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

31 Commits

Repository files navigation

Dependencies

Installation

  1. Download this repository: https://github.com/lalBi94/ZODWorks/archive/refs/heads/master.zip.
  2. Add this line to your resources.cfg file. (You can also start your core).
ensure ZODWorks

Usage

  1. Import the ZODWorks object on your fxmanifest.lua script with these lines.
shared_scripts {
 "@ZODWorks/shared/ZODWorks.lua"
}
  1. Now store the tool in a variable.
local ZODWorks = exports["ZODWorks"]:getSharedObject()
  1. You can now use all available functions. Exemple :
local myMoney = ZODWorks.Player:getMoneyFrom("bank") 
local currencyConvert = ZODWorks.Utils:formatCurrency(tostring(myMoney))
print(myMoney) -- 75900
print(currencyConvert) -- 75 900$

Add-Ons

You can add your own functions or triggers by placing them in ZODWorks/shared/AddOns/. Ideally, :

  • ZODWorks/shared/AddOns/<YOUR_SCRIPT>/locales/locales.lua (to add some langages)
  • ZODWorks/shared/AddOns/<YOUR_SCRIPT>/server-side.lua
  • ZODWorks/shared/AddOns/<YOUR_SCRIPT>/client-side.lua

Exemple :
ZODWorks/shared/AddOns/myCustomScript/myCustomScript.lua

ZODWorks = ZODWorks or {} -- To supress the error "Attempt to call a nil value"
ZODWorks.myCustomScript = {}
---@param str1 string The first string.
---@param str2 string The second string.
---@return string
function ZODWorks.myCustomScript:stringFusion(str1, str2) 
 return ("%s %s"):format(str1, str2)
end
setmetatable(ZODWorks, {__index = ZODWorks.myCustomScript})

[myCore]/myCustomScript/client.lua

local fusionString = ZODWorks.myCustomScript:stringFusion("Onde", "Folie")
print(fusionString) -- Onde Folie

Credit

Owner → General Zod (bilaaaaaaaaaal)
Discord → https://discord.gg/xpCc6XmUaX
Version → BETA

Languages

AltStyle によって変換されたページ (->オリジナル) /