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
601coreexp_air_dynamite
602coreexp_air_dynamite_volatile
603coreexp_air_firebottle
604coreexp_air_firebottle_volatile
605coreexp_bullet
606coreexp_dynamite_crates
607coreexp_grd_cannon
608coreexp_grd_dynamite
609coreexp_grd_dynamite_placed
610coreexp_grd_dynamite_volatile
611coreexp_grd_lantern
612coreexp_grd_moonshine
613coreexp_grd_moonshine_trails_spawn
614coreexp_grd_smoke_post
615coreexp_grd_smoke_post_small
616coreexp_grd_smoke_post_volatile
617coreexp_incendiary_bullet
618coreexp_lantern_flame_sp
619coreexp_lightning_strike
620coreexp_mtl_concrete
621coreexp_mtl_dirt
622coreexp_mtl_feather
623coreexp_mtl_flame
624coreexp_mtl_flesh
625coreexp_mtl_glass
626coreexp_mtl_grass
627coreexp_mtl_leaves
628coreexp_mtl_metal
629coreexp_mtl_mud
630coreexp_mtl_snow
631coreexp_mtl_wood
632coreexp_smoke_trail
633coreexp_smoke_trail_volatile
634coreexp_tracking_arrow
635coreexp_water
636coreexp_water_spout_decals_sp
637coreexp_wood_barrel_liquid_spawner_sp
638coreexp_wood_debris
639corefire_ped_smoulder
640coregun_barrel_eject_smoke
641coregun_hammer_lemat
642coregun_hammer_revolver
643coreliquid_splash_gloopy
644coreliquid_splash_milk
645coreliquid_splash_oil
646coreliquid_splash_petrol
647coreliquid_splash_water
648coremech_ped_sparks
649coremel_grass
650coremel_metal
651coremel_wood
652coremel_wood_rotten
653coremtl_debris_fallen_gravel_heavy
654coremtl_debris_fallen_gravel_light
655coremtl_debris_fallen_gravel_medium
656coremuz_cannon
657coremuz_gatling
658coremuz_revolver
659coremuz_revolver_fp
660coremuz_rifle
661coremuz_rifle_elephant
662coremuz_rifle_fp
663coremuz_shotgun
664coreped_breath
665coreped_breath_bear
666coreped_breath_dog
667coreped_breath_horse
668coreped_foot_ash
669coreped_foot_ash_horse
670coreped_foot_ash_horse_lift
671coreped_foot_ash_muddy
672coreped_foot_ash_muddy_horse
673coreped_foot_ash_muddy_horse_lift
674coreped_foot_blood_pool
675coreped_foot_blood_pool_animal
676coreped_foot_blood_pool_horse
677coreped_foot_blood_pool_lift
678coreped_foot_coal
679coreped_foot_coal_wet
680coreped_foot_dirt_dry
681coreped_foot_dirt_dry_animal
682coreped_foot_dirt_dry_horse
683coreped_foot_dirt_dry_horse_lift
684coreped_foot_dirt_grass_horse
685coreped_foot_dirt_muddy
686coreped_foot_dirt_muddy_horse
687coreped_foot_dirt_underwater
688coreped_foot_dust
689coreped_foot_dust_animal
690coreped_foot_dust_bear
691coreped_foot_dust_horse
692coreped_foot_grass_horse
693coreped_foot_grass_short_horse
694coreped_foot_gravel
695coreped_foot_gravel_animal
696coreped_foot_gravel_dirt
697coreped_foot_gravel_dirt_horse
698coreped_foot_gravel_grass_horse
699coreped_foot_gravel_horse
700coreped_foot_gravel_muddy