[REQUEST] Anti Stunt.asi

Status
Not open for further replies.

xterkday

New member
Joined
Oct 28, 2019
Messages
1
Reaction score
0
Location
428 RAMA2
Hello, I would be much grateful if anyone created me a asi file;
I want my character/player to be not stunt when me was shot
 

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
Hello, I would be much grateful if anyone created me a asi file;
I want my character/player to be not stunt when me was shot
does it necessarily have to be .asi?
JavaScript:
local status = true
function main()
    repeat wait(0) until isSampAvailable()
    sampRegisterChatCommand('stun', function()
        status = not status
        printStyledString(status and 'Enabled' or 'Disabled', 1000, 4)
    end)
    wait(-1)
end

require('samp.events').onSendPlayerSync = function(data)
    if status and data.animationId == 1084 then
        data.animationFlags = 32772
        data.animationId = 1189
    end
end
 

Attachments

  • antistun.lua
    409 bytes · Views: 26
Status
Not open for further replies.
Top