hockey-puckAir Hockey

Purchase

Purchase this resourcearrow-up-right

Installation

circle-info

Framework compatibility

This resource is standalone and works on any FiveM server.

Compatible with ESX, QBCore, QBox, vRP, and other frameworks.

If you are using a framework other than ESX, QBCore, or QBox, follow the Standalone installation instructions.

Standalone

1

Standalone installation

  • Put the rtx_airhockey folder into your resources.

  • Open config.lua.

  • Configure your config.lua to your preferences.

  • Add rtx_airhockey to your server.cfg.

  • Put the rtx_airhockey_objects folder into your resources.

  • Add rtx_airhockey_objects to your server.cfg.

QBCore

1

QBCore installation

  • Put the rtx_airhockey folder into your resources.

  • Open config.lua.

  • Replace Config.Framework = "standalone" with Config.Framework = "qbcore".

  • Configure your config.lua to your preferences.

  • Add rtx_airhockey to your server.cfg.

  • Put the rtx_airhockey_objects folder into your resources.

  • Add rtx_airhockey_objects to your server.cfg.

ESX

1

ESX installation

  • Put the rtx_airhockey folder into your resources.

  • Open config.lua.

  • Replace Config.Framework = "standalone" with Config.Framework = "esx".

  • Configure your config.lua to your preferences.

  • Add rtx_airhockey to your server.cfg.

  • Put the rtx_airhockey_objects folder into your resources.

  • Add rtx_airhockey_objects to your server.cfg.

Config Preview

chevron-rightShow Confighashtag

Adding a New Table

To add a new Air Hockey table, you must insert it into Config.Tables.

⚠️ Each table must be written as its own block and placed under each other inside the table.


✅ Example (Correct)


❌ Common mistake

👉 Always separate tables with a comma ,


Table options

  • position → table location in the world

  • heading → table rotation

  • price → price to play

  • owned → enables management system

  • ownedsociety → job/society owner

  • open → if table is opened by default

  • permissions → who can manage the table


Using Existing World Tables

Tables work even if they are already spawned in the world.

You can use:

  • MLO props

  • housing systems

  • object spawners

Model name:

Just spawn this object anywhere and it will work as an Air Hockey table.


Client Export

You can check if a player is currently playing Air Hockey using this export:

Returns:

  • true → player is playing

  • false → player is not playing

Example:

Notes

The script is designed to be highly flexible and fully customizable. All framework-related functions are editable, allowing you to easily adapt the script to your own server logic.

Most core systems can be modified, and you are free to implement your own logic, interaction system, target system, or any other custom features based on your needs.

The script also includes a language file, making it easy to translate and customize all texts.

Support

If you need help with installation, configuration or have any questions regarding this resource, feel free to contact us on our Discord server:

Join our Discordarrow-up-right

Last updated