Chris!i! Posted January 24, 2016 Posted January 24, 2016 function checkLagger( bombIndex, duration ) local bombIndex = tonumber( bombIndex ) or nil local duration = tonumber( duration ) or nil if ( bombIndex ) and ( duration ) then local found = false for index,projectile in ipairs( getElementsByType( "projectile" ) ) do if ( index == bombIndex ) then setProjectileCounter( projectile, duration * 50 ) found = true break if ( not found ) then outputChatBox( "Projectile with index " .. bombIndex .. " was not found.", 255, 0, 0, false ) end end end end end addEventHandler( "onClientResourceStart", getRootElement(), checkLagger ) function name doesnt matter. I need this to be fixed.., whats wrong?? The grenade still bomb at the default MTA timer..
Chris!i! Posted January 24, 2016 Author Posted January 24, 2016 function checkLagger( duration ) for index,projectile in ipairs( getElementsByType( "projectile" ) ) do setProjectileCounter( projectile, duration * 3243254 ) end end addEventHandler( "onClientResourceStart", getRootElement(), checkLagger ) Tried this too, didnt work what is wrong?
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