Initial commit

This commit is contained in:
Jacob
2021-12-03 01:05:09 +00:00
commit c1add166a1
3511 changed files with 463300 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_scripts {
'client.lua'
}
server_scripts {
'@mysql-async/lib/MySQL.lua',
'server.lua'
}
+60
View File
@@ -0,0 +1,60 @@
local box = nil
local animlib = 'anim@mp_fireworks'
function msg(string)
SetNotificationTextEntry("STRING")
AddTextComponentString(string)
DrawNotification(false, true)
end
RegisterCommand("startfirework", function()
TriggerEvent('chat:addSuggestion', '/startfirework', 'Places a firework box.')
TriggerServerEvent('fireworks')
end)
RegisterNetEvent('bz-noperms')
AddEventHandler('bz-noperms', function()
msg("~r~Sorry! You don't have permission to do that.")
end)
RegisterNetEvent('frobski-fireworks:start')
AddEventHandler('frobski-fireworks:start', function()
RequestAnimDict(animlib)
while not HasAnimDictLoaded(animlib) do
Citizen.Wait(10)
end
if not HasNamedPtfxAssetLoaded("scr_indep_fireworks") then
RequestNamedPtfxAsset("scr_indep_fireworks")
while not HasNamedPtfxAssetLoaded("scr_indep_fireworks") do
Wait(10)
end
end
local pedcoords = GetEntityCoords(GetPlayerPed(-1))
local ped = GetPlayerPed(-1)
local times = 20
TaskPlayAnim(ped, animlib, 'place_firework_3_box', -1, -8.0, 3000, 0, 0, false, false, false)
Citizen.Wait(4000)
ClearPedTasks(ped)
box = CreateObject(GetHashKey('ind_prop_firework_03'), pedcoords, true, false, false)
PlaceObjectOnGroundProperly(box)
FreezeEntityPosition(box, true)
local firecoords = GetEntityCoords(box)
Citizen.Wait(10000)
repeat
UseParticleFxAssetNextCall("scr_indep_fireworks")
local part1 = StartNetworkedParticleFxNonLoopedAtCoord("scr_indep_firework_trailburst", firecoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
times = times - 1
Citizen.Wait(2000)
until(times == 0)
DeleteEntity(box)
box = nil
end)
+8
View File
@@ -0,0 +1,8 @@
RegisterServerEvent('fireworks')
AddEventHandler('fireworks', function()
--if IsPlayerAceAllowed(source, "bz.fwcmds") then
TriggerClientEvent('frobski-fireworks:start', source)
--else
--TriggerClientEvent('bz-noperms', source)
--end
end)