FiveM Leaks

JOB TABAC ESX

Submitted by XxenderCage, , Thread ID: 219826

Thread Closed
21-09-2021, 08:54 PM
#1
OB TABAC EN RAGEUI V2
----------------------------

- Vente de cigarette
- Systeme de farme
- Optimis 0.01MS

----------------------------

Preview : https://www.youtube.com/watch?v=3B4dUik2ang
Tlchargement : https://github.com/eDenYZ/Aurezia-Tabac
Mapping: https://mega.nz/file/fI1U0Q6J#4SIxxqEjUD...5qNBoQhVeU

----------------------------

POUR FUME LES CIGARETTE :

Client :

RegisterNetEvent('aur:startSmoke')
AddEventHandler('aur:startSmoke', function(source)
SmokeAnimation()
end)

function SmokeAnimation()
local playerPed = GetPlayerPed(-1)

Citizen.CreateThread(function()
TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_SMOKING", 0, true)
end)
end


esx_basicneeds :

ESX.RegisterUsableItem('gitanes', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
local smoke = xPlayer.getInventoryItem('malboro')

xPlayer.removeInventoryItem('gitanes', 1)
TriggerClientEvent('aur:startSmoke', source)
end)

Users browsing this thread: 2 Guest(s)