mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
f559e8bbb7a5c1ee8db1d26ed2cf7d29fa59e146
This resource is outdated, known-insecure, problematic, and incompatible with modern standards. It was originally written in 2014 or so as a test, but never did much of note. It should ideally be rewritten in a generic way, with an API to add columns from state bag entries or such, requesting players from the server (through a latent event) when opened, all the while being themeable similar to `chat` and documented in a minimal way as well.
cfx-server-data
The data repository for Cfx.re servers
Usage
- Make sure to
git clone. Don't "Download ZIP", as that'll make it much harder to update to newer versions. - Put custom resources in
resources/[local]/if you don't want to be affected by any random messups.
Advanced usage
You can also consider using the repository as a submodule + symlink for your own Git repository:
Linux:
$ git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data
$ ln -s ../vendor/server-data/resources/ 'resources/[base]/'
Windows:
> git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data
> mklink /d resources\[base] ..\vendor\server-data\resources
Policy
You can make pull requests to propose changes that benefit everyone. Add new useful resources, change/improve existing ones - anything goes, as long as you make sure to:
- Not break existing users/APIs.
- Not change default behavior without a toggle.
- Use best practices (convars over config files, native commands wherever possible, etc.)
Modifying or rewriting existing resources in this repository for local use only is strongly discouraged.
Description
Languages
JavaScript
96.8%
Lua
2.4%
TypeScript
0.4%
HTML
0.3%
CSS
0.1%