[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server

A script by pz-dev

No reviews yet.
[PAID][ESX/QBCore] PZFX lib | (Hud, Spells, Effects and More.. ) for Fantasy Server main image

Full Description

PZFX 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!

Key Features

PZFX is easily imported and consists of several configurable modules: hud, effects, spells

  • HUD: You can view learned spells via an easily configurable HUD
  • Spells: You can use the currently available spells and configure them to your liking. Every month they are updated!
  • Effect: You can also decide to take advantage of the libere only for special effects ( fx ) that you can easily use and configure
  • Compatibility and Integration: PZFX is designed to seamlessly integrate into your existing FiveM server setup. It needs to use ox-lib and is compatible only for framework ESX

Setup

PZFX is easy to use, you need only to import the lib

Getting Started

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

Configuration Framework

Config = {}

Config.Framework = 'ESX' --  or 'QB' 

Config.Debug = true

Config.Sound = true

Config.DisableAutoWhenCast = true

Config.CastDistance = 100

Config.HearImpactDistance = 30

Config.EnableSpellHud = true

QBCore

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

Import

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

Video Showcase

FiveM Script Lib | PZFX (Hud, Spells, Effects and More… ) [ESX]

Hud

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

Watch the video

Spells

Fireball

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

Watch the video

How to use

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

Meteora

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

How to use

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

Effects

Aura Circle

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

Watch the video

How to use

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)

Aura Power

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

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)

Hands

This is the Hands effect, you can use it to simulate the casting effect!

Click on the image to watch the video

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)

Beam

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

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)

Meteor

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)

Blink

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.

Learn a spell

You can learn the spells using the command

/lspell 'classname' 'spellname'
--example
/lspell mage blink

Unlearn all spells

You can unlearn all spells using the command

/uspells

Exports

You can also using the single exports :

exports('LearnSpell', PZFX.Player.LearnSpell)

exports('UnlearnAll', PZFX.Player.UnlearnAll)

Updates

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

:open_book: Documentation: https://pz-scripts.web.app/
:shopping_cart: Buy the script from Tebex: https://pz-store.tebex.io/

  • escrow : 24.40 EUR
  • source-code: 42.70 EUR
Code is accessible Config / Player.lua / Test.lua / server/main.lua
Subscription-based No
Lines (approximately) 3000+
Requirements ESX/QBCore, ox-lib
Support Yes