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
801corewater_splash_ped
802corewater_splash_ped_bird_in
803corewater_splash_ped_bird_out
804corewater_splash_ped_bubbles
805corewater_splash_ped_in
806corewater_splash_ped_lod
807corewater_splash_ped_out
808corewater_splash_ped_small_bubbles
809corewater_splash_rope_in
810corewater_splash_rope_out
811corewater_splash_veh_in
812corewater_splash_veh_out
813corewtr_rocks_rnd_splash
814corewtr_rocks_wall_splash
815corewtr_rocks_wall_upward_splash
816corewtr_sea_pole_splash
817scr_net_beat_gator_huntersscr_net_beat_gator_blood
818scr_beat_grave_robbersscr_beat_grave_dust
819scr_train_robbery3scr_trn3_water_splashes
820scr_train_robbery3scr_trn_exp_bridge
821scr_train_robbery3scr_trn_exp_bridge_landing
822anm_chamberpotent_anim_chamberpot_splash_spawned
823anm_chamberpotent_anim_chamberpot_toss_ped_splash_back
824anm_chamberpotent_anim_chamberpot_toss_ped_splash_front
825anm_chamberpotent_anim_chamberpot_toss_tap
826anm_climbingent_anim_foot_climb_dust
827anm_climbingent_anim_ped_foot_gravel_debris
828scr_fm_mission_creatorscr_mp_dust_cloud
829scr_fm_mission_creatorscr_mp_splash
830scr_rcm_kittyscr_rcm_kitty_hayloft_dust
831scr_guama3scr_gua3_window_smash
832scr_annesburgblood_stone_crusher_exp
833anm_indent_anim_ind_firework_light_flash
834anm_indent_anim_ind_firework_light_flash_bright
835anm_indscr_ind1_firework_burst
836anm_indscr_ind1_firework_burst_lead
837anm_indscr_ind1_firework_burst_long
838anm_indscr_ind1_firework_burst_long_lead
839anm_indscr_ind1_firework_burst_short
840anm_indscr_ind1_firework_burst_short_lead
841anm_indscr_ind1_firework_points
842anm_indscr_ind1_firework_points_lead
843anm_indscr_ind1_firework_ribbon
844anm_indscr_ind1_firework_ribbon_lead
845anm_indscr_ind1_firework_trail
846anm_indscr_ind1_firework_trail_long
847anm_indscr_ind1_firework_trail_ribbon
848anm_indscr_ind1_firework_trail_short
849des_bnk_safe_expent_ray_bnk_safe_exp_debris
850des_bnk_safe_expent_ray_bnk_safe_exp_end
851des_bnk_safe_expent_ray_bnk_safe_exp_start
852scr_beat_skipping_stonesent_amb_water_splash_sm
853cut_utopia2cs_utopia2_water_splash_lrg_001
854cut_utopia2cs_utopia2_water_splash_lrg_002
855cut_utopia2cs_utopia2_water_splash_lrg_003
856cut_utopia2cs_utopia2_water_splash_ped
857cut_utopia2cs_utopia2_water_splash_sm_001
858cut_utopia2cs_utopia2_water_splash_sm_002
859cut_utopia2cs_utopia2_water_splash_sm_003
860cut_utopia2cs_utopia2_water_splash_sm_004
861scr_beat_on_the_runent_ray_grh_poop_decal_spawner_sp
862scr_beat_on_the_runscr_beat_otr_fallin
863scr_player_campscr_camp_shooting_stars
864scr_player_campscr_camp_shooting_stars_sp
865scr_colon1cs_cig_exhale_mouth
866scr_crackpotent_anim_elec_sparks
867scr_crackpotscr_crackpot_elec_flow
868scr_crackpotscr_crackpot_rc_lightening
869scr_crackpotscr_crackpot_rc_lightening_exp
870scr_crackpotscr_crackpot_tesla_fail
871scr_crackpotscr_crackpot_tesla_spark
872scr_smuggler2ent_amb_falling_debris
873scr_smuggler2exp_grd_smoke_post_small
874scr_smuggler2exp_smoke_trail
875scr_smuggler2muz_cannon_warship
876scr_smuggler2scr_smg2_boat_exp
877scr_smuggler2scr_smg2_boat_impact
878scr_smuggler2scr_smg2_fort_exp
879scr_smuggler2scr_smg2_fort_exp_cannon
880scr_smuggler2scr_smg2_fort_exp_debris
881anm_animalsent_anim_animal_bite_carcass
882anm_animalsent_anim_animal_breath
883anm_animalsent_anim_animal_graze
884anm_animalsent_anim_animal_graze_berries
885anm_animalsent_anim_animal_impact_dust
886anm_animalsent_anim_animal_shit
887anm_animalsent_anim_bear_dig_dirt
888anm_animalsent_anim_beaver_eat_tree_chunk
889anm_animalsent_anim_bull_hit
890anm_animalsent_anim_bull_kick
891anm_animalsent_anim_deer_graze
892anm_animalsent_anim_deer_graze_grass
893anm_animalsent_anim_dog_dig_dirt
894anm_animalsent_anim_dog_water_drink_drips
895anm_animalsent_anim_eat_leaves
896anm_animalsent_anim_feathers_float
897anm_animalsent_anim_feeding_horse_crumbs
898anm_animalsent_anim_hen_peck
899anm_animalsent_anim_horse_graze_bite
900anm_animalsent_anim_horse_water_drink_drips