![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server main image](https://cdn.discordapp.com/attachments/1199450872556560477/1199467317067784233/image.png?ex=65c2a5fd&is=65b030fd&hm=eb3b978fd48652aca2e59098ca61e690ab356f0d466953a1622eda3d0bdc6640&)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 1](https://cdn.discordapp.com/attachments/1199450872556560477/1199467317067784233/image.png?ex=65c2a5fd&is=65b030fd&hm=eb3b978fd48652aca2e59098ca61e690ab356f0d466953a1622eda3d0bdc6640&)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 2](https://cdn.discordapp.com/attachments/1199450872556560477/1199461416286048287/image.png?ex=65c2a07e&is=65b02b7e&hm=1a346df0112cd642c51d02e679d80bba47c9fbbf4b4ec95e2fd74deedd2258d2&)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 3](https://media.discordapp.net/attachments/1199450872556560477/1199455988550479902/image.png?ex=65c29b70&is=65b02670&hm=195a6ec56bb47cfc054e35b8ad66ba7ea2b4e7cc4648f597d8b3b207877f6a56&=&format=webp&quality=lossless)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 4](https://cdn.discordapp.com/attachments/1199450872556560477/1199451523067953172/image.png?ex=65c29747&is=65b02247&hm=b9c084e14a8ef52d92d5c99a7f772fc674a0ce7a0d035f9bc6198658abcb7db8&)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 5](https://cdn.discordapp.com/attachments/1199450872556560477/1199458014449643692/image.png?ex=65c29d53&is=65b02853&hm=704b275722bab50982477e2aa0d7f07803964d0c5510e09df47ea78ab2704fc9&)
![[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server thumbnail 6](https://cdn.discordapp.com/attachments/1199450872556560477/1199461416286048287/image.png?ex=65c2a07e&is=65b02b7e&hm=1a346df0112cd642c51d02e679d80bba47c9fbbf4b4ec95e2fd74deedd2258d2&)
Price
UnknownA script by pz-dev
Price
UnknownPZFX is the first library for FiveM dedicated to fantasy servers. It allows for special effects such as magic casting and magic auras. It is under continuous development and spells or special effects are released every month. Have fun!
PZFX is easily imported and consists of several configurable modules: hud, effects, spells
PZFX is easy to use, you need only to import the lib
Extract the downloaded script into the resources folder of the server, and then add the following line to the server.cfg file, after ox-lib and es_extend
ensure pzfx
Config = {}
Config.Framework = 'ESX' -- or 'QB'
Config.Debug = true
Config.Sound = true
Config.DisableAutoWhenCast = true
Config.CastDistance = 100
Config.HearImpactDistance = 30
Config.EnableSpellHud = true
Execute the script sql qb_players_spell.sql to save the spells, you need also ox-lib in your scripts
ALTER TABLE `players` ADD `spells` LONGTEXT NULL DEFAULT NULL
To import the PZFX lib in your script you need to call the exports
PZFX = exports['pzfx']:InjectLib()
You can find the functions to call into the file test.lua. More details in the next sections
FiveM Script Lib | PZFX (Hud, Spells, Effects and More⦠) [ESX]
PZFX offers a quick and practical HUD for using learned spells
You can enable it and customize it by editing the configurations in Player.lua
This is a spell generated through the Beam effect, allowing a fireball to be launched and hit opponents within a given range from the point of impact.
Click on the image to watch the video
Take the test.lua file as a reference, you can test using command /fireb and you will trigger this function
function TestFireb()
local coordsEscena = PZFX.Effects.Utils.GetCoordsBall()
if coordsEscena ~= vector3(0, 0, 0) and coordsEscena ~= nil then
local done = false
local doing = true
while doing do
Wait(0)
if not done then
done = true
SetTimeout(200, function()
PZFX.DONE = false
PZFX.Effects.Beam2(nil, coordsEscena, fx.fireball)
while not PZFX.DONE do Wait(1) end
end)
doing = false
end
end
end
end
This is a spell generated through the Meteor effect, allowing you to hit opponents with a meteor that plummets from the sky to the desired spot. It is possible to move affected opponents by as much as desired
Click on the image to watch the video
soon
Take the test.lua file as a reference, you can test using command /met and you will trigger this function
function TestMeteora()
local coordsEscena = PZFX.Effects.Utils.GetCoordsBall()
if coordsEscena ~= vector3(0, 0, 0) and coordsEscena ~= nil then
local done = false
local doing = true
while doing do
Wait(0)
if not done then
done = true
SetTimeout(200, function()
PZFX.DONE = false
PZFX.Effects.Meteora(nil, coordsEscena, fx.meteora)
while not PZFX.DONE do Wait(1) end
end)
doing = false
end
end
end
end
This is the circular aura effect, you can use it to create barriers, fire cages and more.
Click on the image to watch the video
Take the test.lua file as a reference, create a configuration for the aura effect, and call the function.
local params = {
dict = "wpn_flare",
particle = "proj_heist_flare_trail",
size = 0.1,
duration = 3000,
rgb = { r = 0.2, g = 0.7, b = 9.0 },
alpha = 0.1,
numParticelle = 200,
raggio = 1.05
}
Leave nil in the first param to cast on yourself
PZFX.Effects.Aura(nil, params)
This is the Aura effect, you can concatenate multiple effects and have fun. I created the super sayan effect!
Click on the image to watch the video
Take the test.lua file as a reference, create a configuration for the auraPower effect, and call the function.
local params = {
dict = "wpn_flare",
particle = "proj_heist_flare_trail",
size = 8.0,
duration = nil,
rgb = { r = 0.2, g = 0.7, b = 9.0 },
alpha = 0.1,
}
Leave nil in the first param to cast on yourself
PZFX.Effects.AuraPower(nil, params)
This is the Hands effect, you can use it to simulate the casting effect!
Click on the image to watch the video
Take the test.lua file as a reference, create a configuration for the Hands effect, and call the function.
local params = {
dict = "core",
particle = "ent_amb_fbi_fire_lg",
size = 0.3,
duration = 2000,
left = true,
right = true,
rgb = nil,
alpha = 0.5
}
Leave nil in the first param to cast on yourself
PZFX.Effects.Hands(nil, params)
This is the Beam effect, you can use it to land a magic skillshot like a FireBall!
Click on the image to watch the video
Take the test.lua file as a reference, create a configuration for the Hands effect, and call the function.
local params = {
dict = "core",
particle = "ent_amb_fbi_fire_lg",
size = 1.5,
duration = nil,
rgb = nil,
dictEnd = "core",
particleEnd = "exp_grd_plane",
sizePend = 1.5,
rgbPend = nil,
latency = 2,
sound = "fireb",
alpha1 = 1.0,
alpha2 = nil
}
Put the coords where you want to land the Beam effect
PZFX.Effects.Beam2(nil, coordsEscena, params)
This is the Meteor effect, you can use it to make meteorites fall from the sky or any other effect you want. You can configure the speed of the projectile and the effect of the impact
Take the test.lua file as a reference, create a configuration for the Meteor effect, and call the function.
local params = {
dict = "wpn_flare",
particle = "proj_heist_flare_trail",
size = 1.8,
duration = nil,
rgb = { r = 0.0, g = 1.3, b = 3.8 },
dictEnd = "veh_xs_vehicle_mods",
particleEnd = "exp_xs_mine_emp",
sizePend = 3.5,
rgbPend = nil,
latency = 2,
sound = "fireb",
alpha1 = 1.0,
alpha2 = nil
}
Put the coords where you want to land the Meteor effect
PZFX.Effects.Meteora(nil, coordsEscena, params)
This spell was included along with the release of the QBCore version, it allows one to teleport to the targeted area by rilsciating an electrical effect.
You can learn the spells using the command
/lspell 'classname' 'spellname'
--example
/lspell mage blink
You can unlearn all spells using the command
/uspells
You can also using the single exports :
exports('LearnSpell', PZFX.Player.LearnSpell)
exports('UnlearnAll', PZFX.Player.UnlearnAll)
The script is under continuous development, new spells / classes will be implemented every month or at the request of users. Our satisfaction is your happiness. Thank you
Documentation: https://pz-scripts.web.app/
Buy the script from Tebex: https://pz-store.tebex.io/
Code is accessible | Config / Player.lua / Test.lua / server/main.lua |
Subscription-based | No |
Lines (approximately) | 3000+ |
Requirements | ESX/QBCore, ox-lib |
Support | Yes |
No approved reviews found for this script yet.