Legend<3

I Need Some Help

Recommended Posts

Hello, 

I'm trying to Make Boss Have Rocket luncher ( i tried so much but nothing work :/ ) .

Anyway , 

Server Side


function NemesisTest ( )  
	nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90,  100, 0, 0, NemesisTest, 35, "hunting", true )
--	nemesistestc= exports [ "dxmessages" ]:outputDx(root,"BOSS TEST SPAWN","warning")
	
--	baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 )
--	attachElements ( baz, nemesistest, 0.2, 0.1, 0.5, 0, 90, 0 )
  
--	triggerClientEvent ( root, "nemesismissel", root )	
	triggerClientEvent ( "nemesismissel", root )	
	BlipNemesisTest = createBlipAttachedTo ( nemesistest, 23 )
--	triggerClientEvent ( root, "BossSpawn", root )

--	setElementData(nemesistest, "nemesistest",true)
	
	outputChatBox ( "BOSS TEST SPAWN",getRootElement(), 0, 255, 0, true ) 
if nemesistest then
	exports.extra_health:setElementExtraHealth ( nemesistest, 1 )
	end
end

Client Side
 


addEvent ( "nemesismissel", true )
addEventHandler ( "nemesismissel", root,
    function ( )
        x, y, z = getElementPosition("nemesistest")
createProjectile(getLocalPlayer(), 19, x, y, z)
setPedAnimation ( nemesistest, "ROCKET", "RocketFire")
    end
)

Can Someone Help me ? :/:D 

Share this post


Link to post

The client side part isn't needed at all, use giveWeapon server side:

function NemesisTest ( )  
	nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90,  100, 0, 0, NemesisTest, 35, "hunting", true )
--	nemesistestc= exports [ "dxmessages" ]:outputDx(root,"BOSS TEST SPAWN","warning")
	
--	baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 )
--	attachElements ( baz, nemesistest, 0.2, 0.1, 0.5, 0, 90, 0 )
  	giveWeapon(nemesistest, 35, 500, true)	
	BlipNemesisTest = createBlipAttachedTo ( nemesistest, 23 )
--	triggerClientEvent ( root, "BossSpawn", root )

--	setElementData(nemesistest, "nemesistest",true)
	
	outputChatBox ( "BOSS TEST SPAWN",getRootElement(), 0, 255, 0, true ) 
if nemesistest then
	exports.extra_health:setElementExtraHealth ( nemesistest, 1 )
	end
end

Share this post


Link to post
5 minutes ago, Hale said:

The client side part isn't needed at all, use giveWeapon server side:


function NemesisTest ( )  
	nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90,  100, 0, 0, NemesisTest, 35, "hunting", true )
--	nemesistestc= exports [ "dxmessages" ]:outputDx(root,"BOSS TEST SPAWN","warning")
	
--	baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 )
--	attachElements ( baz, nemesistest, 0.2, 0.1, 0.5, 0, 90, 0 )
  	giveWeapon(nemesistest, 35, 500, true)	
	BlipNemesisTest = createBlipAttachedTo ( nemesistest, 23 )
--	triggerClientEvent ( root, "BossSpawn", root )

--	setElementData(nemesistest, "nemesistest",true)
	
	outputChatBox ( "BOSS TEST SPAWN",getRootElement(), 0, 255, 0, true ) 
if nemesistest then
	exports.extra_health:setElementExtraHealth ( nemesistest, 1 )
	end
end

The Boss Have RPG now but he don't shoot .. i looked for solution and my only solution is useing Client side part .. 

createProjectile Work only in Client side ... 

#NOT WORKING :/ help ! :'s 

giveWeapon ??? is BOT ! 

  1. nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90, 100, 0, 0, NemesisTest, 35, "hunting", true )

35 = Rocket Luncher 

Edited by Legend<3

Share this post


Link to post

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.