RedM Natives

Particle FX (non-looped)

Notes from the author
		EXAMPLE. MAKE FIREWORK BURST FROM YOUR PED:
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
		local new_ptfx_dictionary = "scr_lom_train"
		local new_ptfx_name = "scr_ind1_firework_burst"

		local is_particle_effect_active = false
		local current_ptfx_dictionary = new_ptfx_dictionary
		local current_ptfx_name = new_ptfx_name

		local current_ptfx_handle_id = false

		local ptfx_offcet_x = 0.0
		local ptfx_offcet_y = 0.0
		local ptfx_offcet_z = 0.0
		local ptfx_rot_x = -90.0
		local ptfx_rot_y = 0.0
		local ptfx_rot_z = 0.0
		local ptfx_scale = 1.0
		local ptfx_axis_x = 0
		local ptfx_axis_y = 0
		local ptfx_axis_z = 0


		Citizen.CreateThread(function()
		   	while true do
		        Citizen.Wait(0)
		        if Citizen.InvokeNative(0x91AEF906BCA88877,0, 0x17BEC168) then   -- just pressed E
		        	if not is_particle_effect_active then
		        		current_ptfx_dictionary = new_ptfx_dictionary
						current_ptfx_name = new_ptfx_name
		        		if not Citizen.InvokeNative(0x65BB72F29138F5D6, GetHashKey(current_ptfx_dictionary)) then -- HasNamedPtfxAssetLoaded
		        			Citizen.InvokeNative(0xF2B2353BBC0D4E8F, GetHashKey(current_ptfx_dictionary))  -- RequestNamedPtfxAsset
		        			local counter = 0
		        			while not Citizen.InvokeNative(0x65BB72F29138F5D6, GetHashKey(current_ptfx_dictionary)) and counter <= 300 do  -- while not HasNamedPtfxAssetLoaded
		        				Citizen.Wait(0)
		        			end
		        		end
		    			if Citizen.InvokeNative(0x65BB72F29138F5D6, GetHashKey(current_ptfx_dictionary)) then  -- HasNamedPtfxAssetLoaded
		    				Citizen.InvokeNative(0xA10DB07FC234DD12, current_ptfx_dictionary) -- UseParticleFxAsset


		    				current_ptfx_handle_id =  Citizen.InvokeNative(0xE6CFE43937061143,current_ptfx_name,PlayerPedId(),ptfx_offcet_x,ptfx_offcet_y,ptfx_offcet_z,ptfx_rot_x,ptfx_rot_y,ptfx_rot_z,ptfx_scale,ptfx_axis_x,ptfx_axis_y,ptfx_axis_z)    -- StartNetworkedParticleFxNonLoopedOnEntity
		    				is_particle_effect_active = true
						else
							print("cant load ptfx dictionary!")
		    			end
		        	else
		        		if current_ptfx_handle_id then
							if Citizen.InvokeNative(0x9DD5AFF561E88F2A, current_ptfx_handle_id) then   -- DoesParticleFxLoopedExist
								Citizen.InvokeNative(0x459598F579C98929, current_ptfx_handle_id, false)   -- RemoveParticleFx
							end
						end
						current_ptfx_handle_id = false
						is_particle_effect_active = false
		        	end
		        end
		    end
		end)

----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
 ptfx_assets_non_looped = {
 	[ptfx_dictionary] = {ptfx_name},
 }
1,141 rows
#dictionaryeffectNote
401coreent_brk_ice
402coreent_brk_jug
403coreent_brk_lantern
404coreent_brk_lantern_glass
405coreent_brk_leather
406coreent_brk_metal_frag
407coreent_brk_metal_spark
408coreent_brk_moonshine
409coreent_brk_paper
410coreent_brk_pelt_fur
411coreent_brk_poop
412coreent_brk_rock
413coreent_brk_rubble
414coreent_brk_sand
415coreent_brk_sparking_wires
416coreent_brk_steam_burst
417coreent_brk_steam_pipe
418coreent_brk_tobacco
419coreent_brk_tree_leaves
420coreent_brk_tree_trunk_bark
421coreent_brk_upholstery
422coreent_brk_uprooted
423coreent_brk_wood_planks
424coreent_brk_wood_splinter
425coreent_col_bush_leaves
426coreent_col_electrical
427coreent_col_falling_snow
428coreent_col_gen_tree_dust
429coreent_col_palm_leaves
430coreent_col_rocks
431coreent_col_tree_leaves
432coreent_col_tree_leaves_birch
433coreent_col_tree_leaves_ficus
434coreent_col_tree_leaves_maple
435coreent_col_tree_leaves_oak
436coreent_col_tree_leaves_pine
437coreent_dst_blood
438coreent_dst_bone
439coreent_dst_box_nails
440coreent_dst_bread
441coreent_dst_brick
442coreent_dst_brick_vertical
443coreent_dst_bronte_win
444coreent_dst_burning_crumble
445coreent_dst_burning_ignite
446coreent_dst_cactus
447coreent_dst_candle
448coreent_dst_candy_jar
449coreent_dst_carmetal
450coreent_dst_ceramic_vase
451coreent_dst_ceramics
452coreent_dst_chick_carcass
453coreent_dst_cig_packets
454coreent_dst_cigarette
455coreent_dst_clay
456coreent_dst_clock_metal
457coreent_dst_cloth
458coreent_dst_concrete
459coreent_dst_concrete_large
460coreent_dst_concrete_pillar
461coreent_dst_concrete_pillar_linger
462coreent_dst_cotton
463coreent_dst_dirt
464coreent_dst_dreamcatcher
465coreent_dst_dust
466coreent_dst_egg
467coreent_dst_electrical
468coreent_dst_embers
469coreent_dst_feather
470coreent_dst_feathers
471coreent_dst_flammable
472coreent_dst_flesh
473coreent_dst_flowers
474coreent_dst_gen_cardboard
475coreent_dst_gen_food
476coreent_dst_gen_liquid_burst
477coreent_dst_gen_paper
478coreent_dst_gen_veg
479coreent_dst_gen_veg_pulp
480coreent_dst_gen_veg_small
481coreent_dst_gen_veg_small_pulp
482coreent_dst_gen_water_spray
483coreent_dst_glass
484coreent_dst_glass_bottles
485coreent_dst_glass_bottles_beer
486coreent_dst_glass_bulb
487coreent_dst_glass_headlight
488coreent_dst_glass_liquid
489coreent_dst_glass_medicine
490coreent_dst_glass_moonshine
491coreent_dst_glass_round_lrg
492coreent_dst_gourd
493coreent_dst_grain
494coreent_dst_gravel
495coreent_dst_gravestone
496coreent_dst_hanging_herb
497coreent_dst_hay
498coreent_dst_husk
499coreent_dst_ice
500coreent_dst_icicle