SkiZo Posted July 5, 2017 Share Posted July 5, 2017 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 ? Link to comment
Hale Posted July 5, 2017 Share Posted July 5, 2017 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 Link to comment
SkiZo Posted July 5, 2017 Author Share Posted July 5, 2017 (edited) 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 ! nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90, 100, 0, 0, NemesisTest, 35, "hunting", true ) 35 = Rocket Luncher Edited July 5, 2017 by Legend<3 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now