Hi people
This code for Take A SuperBullets in weapon,
but my problem,i want set the player can rebuy Super Bullets after it end
can help and thx
Client-Side
if ( source == weapButton9 ) then
local PlayerMoney = getPlayerMoney(source)
if ( PlayerMoney>=10000 ) then
addEventHandler ( "onClientPlayerWeaponFire",getLocalPlayer(), weaponfireds )
function weaponfireds (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement )
if ( weapon == 31) then
triggerServerEvent ("bulletboom" ,getLocalPlayer(), hitX, hitY, hitZ )
end
setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), weaponfireds) outputChatBox("Super Bullets Has End",255,255,0) end,60000,1, true)
end
end