NotSomething0 / Valkyrie

Open source FiveM anticheat
GNU General Public License v3.0
76 stars 21 forks source link

[Suggestion] Implement ptFxEvent #6

Closed Ekinoxx0 closed 2 years ago

Ekinoxx0 commented 2 years ago

Hi,

many exploits use particle to crash players, this could be fixed by blocking or filtering the ptfxEvent You can learn more here : https://github.com/citizenfx/fivem/blob/b4e22cc386f69f6215a811caf42ec0b6681261f1/code/components/citizen-server-impl/src/state/ServerGameState.cpp#L4924

For my particular use, i don't have any particle on my server so I can blacklist all use of the event. Some RP servers use networked particle on emotes, we could filter them.

Potential example :


AddEventHandler('ptFxEvent', function(playerId, eventData)
    -- Ban on condition or on any usage
end)
NotSomething0 commented 2 years ago

Easy enough to implement will probably have it done within the next two weeks or so (working on some other fixes) thanks for the suggestion!

NotSomething0 commented 2 years ago

Sorry for the extended delay life got in the way, we'll actually be checking out this event next week helpfully sooner. Thanks for being patient :)

NotSomething0 commented 2 years ago

https://github.com/NotSomething0/Valkyrie/commit/5d09f1e6c74c54fa9d6f71accc47dfc619f6ab07