notsomething0 / valkyrie Goto Github PK
View Code? Open in Web Editor NEWOpen source FiveM anticheat
License: GNU General Public License v3.0
Open source FiveM anticheat
License: GNU General Public License v3.0
Hello dear thanks for this anticheat its very good but there is 2 problem one is how can i set a player as admin?when i goto my server i ban from my server yes godmode and some one can be fix with add_ace identifier... but some functions for example blacklist events are do in all players admins and players and all them when they trigger event ban and 2 isuss is configs donesnt work for me when i spawn a blacklisted car or weapon no result i give and in my f8 and server console there is no erorr
As seen on https://gist.github.com/jrus/3197011, using math.randomseed to seed math.random actually unique numbers is a pretty good idea and overall will improve math.random's quality.
Quote from shmoli-itrs:
"Need to seed math.random to avoid generating the same uuid in subsequent runs"
This can be done by adding only 1 line in sv_banmanager.lua's UUID function:
math.randomseed(os.time())
If approved, I'll make and pull request these changes.
Hello my friend, thanks for this beautiful system, but I am getting such errors, what is the reason? I am using qb-core.
@Valkyrie/server/sv.entities.lua:36: unexpected symbal near ')'
@Valkyrie/server/sv.entities.lua:250 attemp to index a nil value (global 'logger')
@Valkyrie/server/sv.filter.lua:57: ')' expected near '0'
Certain punishments may be determined by the user to be more or less harmful than one another, so we should allow users to specify punishments options, something like the following could work in the config file.
set vac:internal:punishment_options {
"event": "kick",
"explosion": "412214124",
"chat": "log"
}
Currently we send a punishment type via a hard coded number as seen in sv_events but this seems like a much better option. This should abstract VPlayer with a new function aptly named "punish" this can then route the punishment to the appropriate function.
Getting this error when starting Valkyrie:
[ script:Valkyrie] SCRIPT ERROR: @Valkyrie/server/sv_main.lua:52: attempt to index a nil value (field '?')
[ script:Valkyrie] > fn (@Valkyrie/server/sv_main.lua:52)
I also noticed that when Valkyrie is enabled, sometimes I'm getting a red flashing on the minimap as if I was taking damage but I'm not sure how to exactly reproduce currently. Currently I can only see it happening while in a vehicle since I don't have minimap enabled otherwise.
It seems that if I restart Valkyrie while I am in the server, I don't get this issue but if I leave and rejoin it comes back which leads me to believe it may be something with an OnPlayerLoaded event maybe?
Currently using QBCore and version 1.5.0 from the release section but I updated the config and permissions cfgs and their respective exec's to match the master branch.
Rational: Logging actions to discord isn't a reliable solution and leaves a lot to be desired
Details:
- Four different log levels (trace, debug, error, verbose)
- All information is written to a new log file upon resource start
- If the creation date of the file is greater than three months (default) delete it
- New folder titled "logs" all files will be written here
- New actions that affects players will still be sent to discord
How do i unban people theres no sql or ban txt file?
[ script:Valkyrie] SCRIPT ERROR: @Valkyrie/server/modules/sv_explosion.lua:174: attempt to index a nil value (global 'ProhibitedWeapons')
[ script:Valkyrie] > handler (@Valkyrie/server/modules/sv_explosion.lua:174)
[ script:Valkyrie] SCRIPT ERROR: @Valkyrie/server/modules/sv_events.lua:259: attempt to call a table value (global 'VPlayer')
[ script:Valkyrie] > handler (@Valkyrie/server/modules/sv_events.lua:259)
Hello, can I use for Qbcore if so, how? I have errors in the console and I don't know how to fix it all
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)
I looked and I can't seem to find a definition for this either, line 60 is calling the handlePlayer export but I don't see a handlePlayer function anywhere.
exports.Valkyrie:handlePlayer(netId, 'Maxium strikes', 'Exceeded maximum tracker strikes', true)
[ c-scripting-core] Creating script environments for Valkyrie
[ script:Valkyrie] Error loading script server/sv_filter.lua in resource Valkyrie: citizen:/scripting/lua/scheduler.lua:867: No such export registerMessageHook in resource chat
[ script:Valkyrie] stack traceback:
[ script:Valkyrie] [C]: in function 'error'
[ script:Valkyrie] citizen:/scripting/lua/scheduler.lua:867: in metamethod 'index'
[ script:Valkyrie] @Valkyrie/server/sv_filter.lua:19: in main chunk
[ c-scripting-core] Failed to load script server/sv_filter.lua.
[ citizen-server-impl] Started resource Valkyrie
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.