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
901anm_animalsent_anim_pig_graze
902anm_animalsliquid_splash_pee
903anm_explosionent_anim_cannonball_exp
904anm_explosionent_anim_jbo1_int_exp
905anm_explosionexp_smoke_trail
906scr_utopia1scr_utopia1_donkey_smoke
907scr_beat_rallyscr_beat_rally_cross_fire
908cut_rprsncs_ped_breath_winter
909anm_mudcs_mud2_mud_splash_body
910anm_mudcs_mud2_mud_splash_hand
911anm_collisionent_anim_bang_dust_joint
912anm_collisionent_anim_bang_dust_limb
913anm_collisionent_anim_bang_mud_joint
914anm_collisionent_anim_bang_mud_limb
915anm_collisionent_anim_bang_mud_soft_limb
916anm_collisionent_anim_brk_door_lock
917anm_collisionent_anim_dust_mud
918anm_collisionent_anim_foot_gravel_stomp
919anm_fire_dancersent_anim_fire_breathe
920anm_gatorent_anim_gator_blood_underwater
921anm_gatorent_anim_gator_grapple_end
922anm_gatorent_anim_gator_kill
923anm_gatorent_anim_gator_sink
924anm_gatorent_anim_gator_splash_triggered
925anm_gatorent_anim_mob5_gator_blood_underwater
926anm_gatorscr_beat_corpse_water_bubble_spawn
927scr_winter2scr_winter2_dislodged_ice
928scr_winter2scr_winter2_snow_grab
929scr_beat_bear_trapscr_beat_bear_blood
930cut_wintercs_ped_breath_winter
931anm_showsent_anim_magician_smoke
932scr_rhodesent_amb_following_dust
933scr_rhodesent_anim_falling_dust
934scr_rhodesexp_grd_smoke_post_small
935scr_rhodesexp_smoke_trail
936scr_rhodesscr_rho_bankwall_dust_cloud
937scr_rhodesscr_rho_bankwall_exp
938des_mud2ent_dst_wood_splinter
939des_mud2ent_ray_mud2_window_smash
940scr_net_target_racesscr_net_target_destroy_burst
941scr_net_target_racesscr_net_target_fire_ring_burst_mp
942anm_workent_anim_ann_coal_leak
943anm_workent_anim_broom_dust
944anm_workent_anim_chop_wood
945anm_workent_anim_cotton_dump
946anm_workent_anim_dig_dirt
947anm_workent_anim_dig_dirt_grave
948anm_workent_anim_dig_dirt_grave_trail
949anm_workent_anim_dig_dirt_surface
950anm_workent_anim_dig_dirt_treasure
951anm_workent_anim_dig_dirt_treasure_trail
952anm_workent_anim_dig_mud_treasure
953anm_workent_anim_dig_snow_treasure
954anm_workent_anim_dig_snow_treasure_trail
955anm_workent_anim_dig_treasure_pickup_dirt
956anm_workent_anim_dig_treasure_pickup_hay
957anm_workent_anim_dig_treasure_pickup_mud
958anm_workent_anim_dig_treasure_pickup_snow
959anm_workent_anim_disp_dust_waved
960anm_workent_anim_dusty_hands
961anm_workent_anim_gardener_plant
962anm_workent_anim_grab_dirt
963anm_workent_anim_hand_saw_wood
964anm_workent_anim_hand_saw_wood_dir
965anm_workent_anim_hay_pitchfork_pour
966anm_workent_anim_hay_pitchfork_spear
967anm_workent_anim_hay_pitchfork_toss
968anm_workent_anim_hay_pitchfork_work
969anm_workent_anim_hay_pitchfork_work_fast
970anm_workent_anim_hay_pitchfork_work_finish
971anm_workent_anim_haybale_pick_up
972anm_workent_anim_hogtie_rope_brk
973anm_workent_anim_pick_axe_rock_impact
974anm_workent_anim_plane_wood
975anm_workent_anim_plane_wood_rot
976anm_workent_anim_sharp_weapon
977anm_workent_anim_throw_chicken_feed
978anm_workent_anim_water_cloth_squeeze_splash_spawned
979anm_workent_anim_whittle_wood
980anm_workent_anim_work_dust_large
981anm_workent_anim_work_hammer
982anm_workent_anim_work_pick_out
983anm_wntent_anim_foot_stomp_snow
984anm_wntent_anim_ped_breath_warm_hands
985anm_wntent_anim_snow_climb
986anm_wntent_anim_snow_landing
987anm_injuredriderent_anim_arm_blood_saw
988scr_net_dustscr_amb_bridge_disturb_dust
989scr_net_dustscr_mp_evil_pentagram_spawn
990scr_net_dustscr_mp_evil_target_spawn
991scr_net_dustscr_mp_target_spawn
992scr_net_fire_smokescr_adv_terr_flag_blast
993scr_net_fire_smokescr_campfire_smoke_blast
994scr_net_fire_smokescr_mp_collect_pickup_smoke
995scr_net_fire_smokescr_mp_item_pickup_spawn
996anm_craftingent_anim_bait_drop_herbs
997anm_craftingent_anim_craft_pour_powder
998anm_craftingent_anim_craft_root_chips
999anm_craftingent_anim_crafting_animal_ctrl_herbs
1000anm_craftingent_anim_crafting_drop_bits