#Paper Posted March 14, 2011 Share Posted March 14, 2011 The image won't show, and in debugscript there isn't any error: function showImg (totalAmmo, killer, killerWeapon, bodypart, stealth ) if isElement ( killer ) and getElementType ( killer ) == "player" then killImg = guiCreateStaticImage(176,244,226,182,"images/killed.png",false) setTimer(function () local alpha = guiGetAlpha(killImg) guiSetAlpha(killImg, alpha - 0.1) end, 500, 6) end end addEventHandler("onPedWasted", getRootElement(), showImg) Link to comment
DiSaMe Posted March 14, 2011 Share Posted March 14, 2011 Because there's no client-side onPedWasted event... Use onClientPedWasted. Link to comment
#Paper Posted March 14, 2011 Author Share Posted March 14, 2011 Because there's no client-side onPedWasted event... Use onClientPedWasted. Oh ok 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