Configuration of tebex with server FiveM

Hello,

I would like help with setting up Tebex, on my FiveM server.

Tebex is well installed and configured, but I cannot make sure that when a player who buys for example, a car, money in the game or even items that it is automatically given to him

Do I need to code a server side script?

Thank you for your help

3 Likes

Yes, you need to register commands on a server script and use one of variables given by tebex to give something to someone ( there is a script on forum to give car if you’re on esx)

If we use this script as an example you would do on tebex :

  • _givecar {sid} sultan2 for example.

I can give you link to that script if you’re on ESX but here I’m on my phone so later. :wink:

Hi Jeydolen !

Thanks for your answer !

Yes I would like this link of this script example if possible, if he can help me ^^

Thank :slight_smile:

1 Like

Here you are : ESX Give car add-on (works for boat and planes too)

Thank !

For an Item or Money it’s the same ?
I can try to use this ?

You can use this script as a base for your other commands for example if you want to do something with giving money you would do :

--register your command, function (id, amount)

local xPlayer = ESX.GetPlayerFromId(id)
xPlayer.addMoney(amount)

end

ESX is really easy to learn and doc (when not down) is nice.

Official website

Thanks very much for your help ! :smiley:

Link dead … Or ESX Web Down ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.