Price
$15.00A script by IF-Developments
Price
$15.00IF-GameShop is a FiveM script that integrates with Tebex, allowing players to purchase and redeem in-game items or currency packs. This solution provides a seamless experience where players can buy packages on your Tebex store and access the purchased content within the game using simple commands. The script supports multiple frameworks, such as ESX, QB, and STANDALONE.
Tebex Integration: Connects directly to your Tebex shop using command actions.
In-Game Commands: Players can use specific commands to access the shop and redeem currency or game kits.
Currency Packages: Predefined currency packs players can buy and redeem for in-game currency.
You can add more than +4 packs and scroll it.
Gift and Redeem System: Players can assign a purchased pack to a specific player and provide them the tebex code to redeem.
Game Kits: Item kits with various items like weapons and money that players can purchase and redeem.
Discord Webhook: Optional feature to send purchase logs to a specified Discord webhook.
Two types of packages are supported: Currency Packages and Game Kits. Configure these in config/currency.lua and config/gamekits.lua, respectively.
client/framework/standalone and server/framework/standalone)Each currency package allows players to redeem in-game currency. The configuration includes:
Example:
{
packageName = '100 Coins',
packageId = 6532315,
price = 15,
reward = { amount = 100, account = 'coins' },
img = 'assets/currency-shop/money_bag.png',
background_type = "blue",
}
Game kits contain various in-game items like weapons and currency that players can redeem. Each kit configuration includes:
Example:
{
packageName = 'GameKit 1',
packageId = 6532314,
description = { 'x1 PISTOL .50', 'x1 HATCHET', 'R$5000' },
img = 'assets/gamekits/character_green.png',
price = 30,
onBuy = function(playerId)
local FPlayer = Framework.GetPlayer(playerId)
if FPlayer then
FPlayer.AddInventoryItem('WEAPON_PISTOL50', 1)
FPlayer.AddInventoryItem('WEAPON_HATCHET', 1)
FPlayer.AddAccountMoney('money', 5000)
end
end
}
/kitshop: Opens the game kit shop./coinshop: Opens the currency shop.To enable logging, configure your DiscordWebhook details in Config.lua:
Create or Log Into Your Tebex Account:
Linking Your Server:
sv_tebexSecret key provided and paste it into your server.cfg file on the top lines.Connecting Tebex with FiveM:
To allow players to redeem purchases in-game, create a package in Tebex and set it up to send the correct command to your FiveM server.
Navigate to the Packages Section:
Set Up the Package:
packageName defined in your script configuration.Configure the Package to Trigger an In-Game Command:
purchase_package_tebex {"transid":"{transaction}", "packagename":"{packageName}"}
Once this is set up, whenever a player purchases a package, it will trigger this command on your server, allowing them to redeem their items or currency in-game.
For any issues or questions, open a Ticket at our community and check our IF Official Documentation.
|-------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | +1700 |
| Requirements | Standalone |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.