FiveM

Connect your store to your FiveM server. The Tip4Serv script checks if a player has donated, then automatically delivers their order (money, rank, vehicle, items, etc.) using console commands.

Installation

  1. Go to My Settingsarrow-up-right and complete your profile

  2. Add a FiveM server via My Serversarrow-up-right and follow the setup instructions

✅ On successful connection, your console will show: Server has been successfully connected

🔄 To check the connection later, run this command on your FiveM server console:

restart tip4serv

How Donations Work

  1. The player donates through your Tip4Serv store

  2. Their purchase is automatically delivered in-game

Players can also run:

/checkdonate

to force-check their donation delivery.


Setting Up Commands

Before you set up commands:

  • All commands run from the server console (not in-game as admin).

  • If your framework does not support console commands, you must create them manually (see below).

You can configure your commands from the product editor.

circle-info

When a player connects to your server, the {fivem_live_id} placeholder in your command will automatically be replaced with their actual FiveM Live ID, retrieved using their Steam ID or Discord ID provided at checkout.


📣 In-Game Donation Announcements

Use the built-in t4s_announce command:


🔧 Commands for ESX Framework

✅ Requires ESXarrow-up-right and es_extendedarrow-up-right


🛠️ Commands for QBCore Framework

✅ Requires QBCorearrow-up-right

Set Config.enable_custom_command = true in config.lua

These commands are located in this file: /server/commands.lua


➗ Quantity Multiplier

Let customers choose how much they want to buy.

Enable “Allow quantity choice” in the product settings.

Example:

If a player buys it 4 times:


Commands also run automatically

Useful if you are creating subscriptions with expiration commands.

Example: if the player unsubscribes, his VIP group will be removed.

To ensure player data is fully loaded, commands with {fivem_live_id} will only execute if the player has moved at least once since connecting to the server. This is to ensure that the player is not in the loading screen or in the character choice.


Custom Console-Compatible Commands

If your framework lacks console commands, you can write your own using:

Guide: FiveM Command Docsarrow-up-right

Example from Tip4Serv: Tip4Serv GitHub – commands.lua (line 10)arrow-up-right

Last updated