RedM Natives

Explosion vfxTags

Notes from the author
		EXAMPLE. MAKE BULLET EXPLOSION WITH LIGHTNING EFFECT:
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
 Citizen.CreateThread(function()
     while true do
         Citizen.Wait(0)
         if Citizen.InvokeNative(0x91AEF906BCA88877,0, 0x17BEC168) then   -- pressed E
 			local explosionTag_id = 12  -- EXP_TAG_BULLET, check all tags here: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/README.md
         	local explosion_vfxTag_hash = 0x7DD07579 	-- applies effect exp_lightning_strike
         	local ped = PlayerPedId()
         	local ped_coords = GetEntityCoords(ped)
 			local x,y,z = table.unpack(ped_coords)
 			local forward_fix = 15
 			local forwardX=GetEntityForwardX(ped)
     	    local forwardY=GetEntityForwardY(ped)
 	        local explosion_coords_x = x+(forwardX*forward_fix)
 	        local explosion_coords_y = y+(forwardY*forward_fix)
 	        local explosion_coords_z = z
 	        local damageScale = 1.0
 	        local isAudible = true
 	        local isInvisible = false
 	        local cameraShake = true
 	        -- ADD_EXPLOSION_WITH_USER_VFX:
 			Citizen.InvokeNative(0x53BA259F3A67A99E, explosion_coords_x, explosion_coords_y, explosion_coords_z, explosionTag_id, explosion_vfxTag_hash, damageScale, isAudible, isInvisible, cameraShake)
 		end
 	end
 end)
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
 explosion_vfxTags = {
 	explosion_vfxTag_hash, -- what effects are applied 
 }
26 rows
#valueNote
10x01A00532exp_water_spout
20x0B096860exp_sht_steam
30x146DC46Bscr_exp_outlaw2_fortwall_mp, exp_grd_smoke_post
40x1FDD8CC7exp_grd_dynamite, exp_grd_smoke_post
50x2FDA2B4Aexp_grd_dynamite, exp_grd_smoke_post, exp_air_dynamite
60x316B7BA9exp_tracking_arrow
70x3795856F
80x3EDF47ECexp_bullet
90x59B3C676exp_incendiary_bullet
100x5D3481D8exp_dynamite_crates, exp_grd_smoke_post
110x61BEF304exp_sht_flame
120x702BD2BFscr_utopia2_exp_ground
130x741CEF07exp_grd_dynamite_volatile, exp_grd_smoke_post_volatile, exp_air_dynamite_volatile
140x7ADE335Aexp_poison_bottle
150x7DD07579exp_lightning_strike
160x7DF5D791exp_grd_dynamite, exp_grd_smoke_post
170x8DD5A8E5exp_grd_lantern
180x93FCC9C7exp_grd_cannon, exp_grd_smoke_post
190x9AE5CE85exp_grd_dynamite, exp_air_dynamite
200xA0BF61B1exp_air_firebottle_volatile
210xC22E127Dscr_disc_cave_explosion
220xD06E43B6exp_grd_dynamite_placed, exp_grd_smoke_post_small
230xE03C5FDFexp_grd_moonshine
240xE958B916exp_air_firebottle
250xF01E6471scr_poisoned_well_exp
260xF36AD9ACscr_trn4_wall_dynamite