[Release] vRP_GiftBox

Info
I tried to make the best GiftBox script because many big servers have it so this is my version of the giftbox I made, it’s unique because I did not see that a server has the same futures because of this is a unique one. I’ll make updates to the resource because I want to add …………SPOILER FOR NEXT Update…………….:smile:

Permission

  • “giftbox.admin”,
    (You can edit the perm in cfg/cfg.lua)

Source Code

Config
In cfg/cfg.lua you can edit some messages an values, in the next update I will try to make more easy to config!

Update Log
v 1.5

  • Fixed “You don’t have enough giftboxes” error
  • Fixed “No money” error, now all players should to get the money from giftbox
  • Added more things to edit in cfg/cfg.lua
  • More easy to edit text + values

v 2.0

  • Fixed “the giftmoney” error, now the random number can be config in cfg/cfg.lua
  • Fixed “the market” error, now you can buy from market GiftBoxes with money

v 2.5

  • New Holograms
  • New Holographic Text

v 3.0 (BIG UPDATE)
(For this update @HackerGeo was my TESTER)

  • Added a new Admin Menu
  • Added a new option (Reset GiftBox), reset the giftboxes from a player
  • Added Cars to the GiftBox
  • Added GiftBox Trade (Now players can trade giftbox between them Giftboxes)
  • A new algorithm for winning prizes (Now from a giftbox you can get for example money and giftboxes)
  • Fixed the algorithm for money
  • Fixed the algorithm for winning
  • Fixed the PayCheck message
  • More easy to config it

Futures
Easy to config
Paycheck
GiftBox Market
Display Amount of GiftBox
(Some of the messages you can only edit in server.lua)

Installation

  1. Import the sql file (vrp_giftbox.sql) in the DataBase
  2. Upload on the server (resources folder) the script
  3. Add in server.cfg, start vRP_GiftBox
12 Likes

Moved it for you :stuck_out_tongue:

2 Likes

Thx but man I can’t move in releases only in Discussion, pls fix this!

You need to gain a higher trust level.

Being able to post a topic in the #development:releases category requires the minimum trust level 2 . Be active in the community by helping others, answer questions and generally offer an active stance in the community to gain trust levels.
If you feel that your resource adds a lot of value to the FiveM community, you may post it in #development:scripts and a trusted user will move it for you.

Source: Releases Rules and F.A.Q

3 Likes

Ok thx

2 Likes

Nice man, i have other giftbox but yours is great!
excuse my English😂

1 Like

Fancy Fancy nice script m8

1 Like

not working, tells me I do not have enough gift boxes

1 Like

This is a problem from the DB try to reset the DB (only the vrp_giftbox) and then it should be fine.

waoowa

1 Like

:smile:

1 Like

Works in esx server? Can you add screens? Thanks!

Is only for vrp and maybe

Have in mind update for esx?

I must learn ESX

So, finally, do you learn ESX? hahaha Thanks!!

Someone knows how to create ESX version?

how to add giftbox admin , what is the command?

Is not a command is a permission from cfg

This gives me mistakes when I go to the point to redeem the boxes. It gives error when you win 1 car the database gets crashed …