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
1101anm_skinningent_anim_skinning_knife_stab
1102anm_skinningent_anim_skinning_skin_pull
1103anm_skinningent_anim_skinning_skin_pull_snake
1104scr_fussar1liquid_splash_oil
1105scr_fussar1scr_fussar1_exp
1106scr_fussar1scr_fussar1_exp_roof
1107scr_fussar1scr_fussar1_exp_smaller
1108scr_fussar1scr_fussar1_impact_smoke
1109scr_fussar1scr_fussar1_leak_oil
1110scr_fussar1scr_fussar1_sb_dutch_01
1111scr_fussar1scr_fussar1_sb_dutch_02
1112scr_fussar1scr_fussar1_sb_long
1113scr_fussar1scr_fussar1_sb_long_br
1114anm_waterent_amb_oil_drips_spawned
1115anm_waterent_amb_water_drips_spawned
1116anm_waterent_anim_bm_water_mist
1117anm_waterent_anim_bm_water_scp
1118anm_waterent_anim_boat_splash
1119anm_waterent_anim_bucket_pour_through
1120anm_waterent_anim_gua1_boat_splash
1121anm_waterent_anim_mob5_dump_body_splash
1122anm_waterent_anim_nts2_dive_water
1123anm_waterent_anim_ped_hand_splash
1124anm_waterent_anim_ped_wash_face
1125anm_waterent_anim_ped_water_disturb
1126anm_waterent_anim_ped_water_drink_splash
1127anm_waterent_anim_ped_water_entry_splash
1128anm_waterent_anim_ped_water_exit_splash
1129anm_waterent_anim_ped_water_shake
1130anm_waterent_anim_water_bucket_dump
1131anm_waterent_anim_water_bucket_pour
1132anm_waterent_anim_water_bucket_splash
1133anm_waterent_anim_water_dive_splash
1134anm_waterent_anim_water_drown_splash
1135anm_waterent_anim_water_duck_eat_splash
1136anm_waterent_anim_water_gold_pan_fling
1137anm_waterent_anim_water_gold_pan_splash
1138anm_waterent_anim_water_kettle_splash
1139anm_waterent_anim_waterbucket_splash_spawned
1140anm_waterliquid_splash_water
1141scr_arch_jameson3blood_stone_crusher_exp