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
701coreped_foot_gravel_muddy_horse
702coreped_foot_gravel_wet_animal
703coreped_foot_gravel_wet_horse
704coreped_foot_hay
705coreped_foot_leaves
706coreped_foot_leaves_animal
707coreped_foot_leaves_ficus_horse
708coreped_foot_leaves_ficus_wet_horse
709coreped_foot_leaves_horse
710coreped_foot_leaves_maple_horse
711coreped_foot_leaves_maple_wet_horse
712coreped_foot_leaves_oak_horse
713coreped_foot_leaves_oak_wet_horse
714coreped_foot_leaves_wet
715coreped_foot_leaves_wet_animal
716coreped_foot_leaves_wet_horse
717coreped_foot_marsh_underwater
718coreped_foot_mud_liquid
719coreped_foot_mud_liquid_horse
720coreped_foot_mud_liquid_lift
721coreped_foot_mud_liquid_lift_horse
722coreped_foot_mud_soft
723coreped_foot_mud_soft_animal
724coreped_foot_mud_soft_horse
725coreped_foot_mud_soft_lift
726coreped_foot_mud_underwater
727coreped_foot_mud_wet
728coreped_foot_mud_wet_horse
729coreped_foot_oil_pool
730coreped_foot_oil_pool_animal
731coreped_foot_oil_pool_horse
732coreped_foot_oil_pool_lift
733coreped_foot_petrol_pool
734coreped_foot_petrol_pool_animal
735coreped_foot_petrol_pool_horse
736coreped_foot_petrol_pool_lift
737coreped_foot_powder
738coreped_foot_powder_horse
739coreped_foot_sand_horse
740coreped_foot_sand_horse_lift
741coreped_foot_sand_wet
742coreped_foot_sand_wet_animal
743coreped_foot_sand_wet_horse
744coreped_foot_sand_wet_horse_lift
745coreped_foot_sand_wet_lift
746coreped_foot_snow
747coreped_foot_snow_animal
748coreped_foot_snow_horse
749coreped_foot_twigs
750coreped_foot_twigs_horse
751coreped_foot_twigs_wet
752coreped_foot_twigs_wet_horse
753coreped_foot_veg_wet
754coreped_foot_veg_wet_horse
755coreped_foot_water
756coreped_foot_water_animal
757coreped_foot_water_horse
758coreped_foot_water_lift
759coreped_foot_water_puddle
760coreped_foot_water_puddle_horse
761coreped_foot_wood
762coreped_foot_wood_animal
763coreped_foot_wood_horse
764coreped_foot_wood_lift
765coreped_foot_wood_wet
766coreped_foot_wood_wet_animal
767coreped_foot_wood_wet_horse
768coreped_horse_obstacle_clip_dust
769coreped_snow_splash
770coreped_trample_dust
771coreproj_arrow_trail_mp_sp
772corescr_exp_outlaw2_fortwall_mp
773corescr_exp_revenge1_barricade_mp
774coresp_blood_drip_splash
775coresp_ent_sparking_wires
776coresp_fire_petrol_trail_embers
777coreTD_blood_entry_critical
778coreTD_blood_melee_hit
779coreTD_blood_point_blank
780coreveh_backfire
781coreveh_debris_trail
782coreveh_light_amber
783coreveh_light_clear
784coreveh_light_red
785coreveh_respray_smoke
786coreveh_stow_dust
787corewater_boat_entry
788corewater_boat_oar_enter
789corewater_boat_oar_exit
790corewater_canoe_entry
791corewater_canoe_oar_enter
792corewater_canoe_oar_exit
793corewater_splash_bobber_in
794corewater_splash_gator
795corewater_splash_gator_in
796corewater_splash_gator_out
797corewater_splash_horse_in
798corewater_splash_horse_out
799corewater_splash_obj_in
800corewater_splash_obj_out