Jump to content

[Question] It is possible to create effect and attach to player/ped?


Chern17

Recommended Posts

Hello, guys. It is possible to create effect and attach it to player/ped?

This code doesn't works, may be I doing something wrong?

addCommandHandler('eff1',
function()
	local eff
	local x, y, z = getElementPosition(localPlayer)
	
	eff = createEffect('fire', x, y, z, 0.0, 0.0, 0.0)
	setElementInterior(eff, getElementInterior(localPlayer))
	attachElements(eff, localPlayer)
end)

Please help ;)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...