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
301corebul_gravel_grass
302corebul_hay
303corebul_leather
304corebul_leaves
305corebul_leaves_ficus
306corebul_leaves_maple
307corebul_leaves_oak
308corebul_metal_chain
309corebul_metal_small
310corebul_mud
311corebul_muddy_dirt
312corebul_paper
313corebul_plaster_brittle
314corebul_plaster_brittle_alt
315corebul_powder
316corebul_sack
317corebul_small_bird_feathers
318corebul_snow_deep
319corebul_stone
320corebul_tobacco
321corebul_water_debris_sp
322corebul_wicker
323corebul_wood_embers
324corebul_wood_rotten
325corebul_wood_solid_small
326corebul_wood_splinter
327corebul_wood_splinter_alt
328corebul_wood_splinter_gatling
329corebul_wood_splinter_gatling_alt
330corebul_wood_splinter_sg
331coreeject_gatling
332coreeject_gatling_maxim
333coreeject_pistol_shell
334coreeject_repeater_shell
335coreeject_revolver
336coreeject_revolver_cattleman
337coreeject_revolver_shell
338coreeject_rifle
339coreeject_rifle_shell
340coreeject_shotgun
341coreeject_shotgun_db
342coreeject_shotgun_shell
343coreeject_sniper_shell
344coreent_amb_elec_crackle_sp
345coreent_amb_falling_debris
346coreent_amb_falling_dust_debris
347coreent_amb_falling_smoke
348coreent_amb_falling_smoke_bam
349coreent_amb_following_dust
350coreent_amb_gutter_splash_spawn
351coreent_amb_impact_interior
352coreent_amb_insect_dragonfly
353coreent_amb_insect_water_bug_bubbles
354coreent_amb_match_ignite
355coreent_amb_oil_drips_spawned
356coreent_amb_sewer_drips_spawned
357coreent_amb_swamp_bubbles
358coreent_amb_tar_bubbles_broken
359coreent_amb_trap_leaves
360coreent_amb_tree_snowfall
361coreent_amb_water_drips_spawned
362coreent_amb_water_drips_spawned_sm_sound
363coreent_amb_wind_cactus_dust
364coreent_amb_wind_snow_drifts_tree_lrg
365coreent_amb_wind_snow_drifts_tree_med
366coreent_amb_wind_snow_drifts_tree_sma
367coreent_amb_work_shovel_mud
368coreent_anim_ann_coal_leak
369coreent_brk_banknotes
370coreent_brk_blood
371coreent_brk_bone
372coreent_brk_bread
373coreent_brk_brick
374coreent_brk_burning_crumble
375coreent_brk_burning_ignite
376coreent_brk_cactus
377coreent_brk_candle
378coreent_brk_ceramic
379coreent_brk_clay
380coreent_brk_cloth
381coreent_brk_coins
382coreent_brk_concrete
383coreent_brk_concrete_large
384coreent_brk_cotton
385coreent_brk_dirt
386coreent_brk_door_frame_dust
387coreent_brk_door_lock
388coreent_brk_dust
389coreent_brk_embers
390coreent_brk_feathers
391coreent_brk_flammable
392coreent_brk_flesh
393coreent_brk_flowers
394coreent_brk_glass
395coreent_brk_glass_bottle
396coreent_brk_grain
397coreent_brk_gravel
398coreent_brk_gravestone
399coreent_brk_hay
400coreent_brk_husk