Mark Gamer Posted June 6, 2017 Share Posted June 6, 2017 where is wrong ? addEventHandler("onClientObjectDamage", root, function(loss,attacker) if isElement(attacker) and isPedInVehicle(attacker) then removePedFromVehicle(attacker) end end ) Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 test it function ObjectDamage ( _, Element ) if isElement( Element ) then if getElementType(Element) == "vehicle" then if getVehicleController ( Element ) then removePedFromVehicle( getVehicleController ( Element ) ) outputChatBox ( "test" ) end end end end addEventHandler("onClientObjectDamage", root, ObjectDamage ) Link to comment
Mark Gamer Posted June 6, 2017 Author Share Posted June 6, 2017 3 hours ago, Killer Project said: test it function ObjectDamage ( _, Element ) if isElement( Element ) then if getElementType(Element) == "vehicle" then if getVehicleController ( Element ) then removePedFromVehicle( getVehicleController ( Element ) ) outputChatBox ( "test" ) end end end end addEventHandler("onClientObjectDamage", root, ObjectDamage ) wrong Link to comment
Hale Posted June 6, 2017 Share Posted June 6, 2017 Can you tell us what are you trying to do? 1 Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 @Mark Gamer F8 -> debugscript 3 -> restart the script -> test the script and do not forget [ client side event ] 1 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