Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shit()
- -- Check if a weapon is active
- local wpn = db.actor:active_item()
- wpn = packet_utils.item_is_fa(wpn) and wpn
- if (wpn) then
- local se_wpn = alife():object(wpn:id())
- local data = stpk_utils.get_weapon_data(se_wpn)
- -- Check if weapon firing
- if (data.weapon_state == 5) then
- do_some_shit
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement