Giter Site home page Giter Site logo

cfx-server-data's People

Contributors

bladecoding avatar blattersturm avatar blumlaut avatar busheezy avatar d0p3t avatar dependabot[bot] avatar disquse avatar firecul avatar giroudmathias avatar hellslicer avatar indilo53 avatar jaymo1011 avatar johnnycrazy avatar klingni avatar nihonium-cfx avatar nnsdev avatar tabarra avatar technetium-cfx avatar tomgrobbe avatar vecchiotom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cfx-server-data's Issues

Chat Not Disappearing

The chat box used to disappear after typing or not going into the chat box, but now it just stays there and it can get really annoying and become an eye-sore.

__resource.lua export bug

Latest FXServer
Latest and original cfx-server-data

All right, so sometimes I and other players cannot connect to the server for the first time because of this error in fivem_client.lua:2:


[ 73641] Error running system event handling function for resource fivem: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/scheduler.lua:394: No such export setAutoSpawn in resource spawnmanager


fivem_client.lua:2 code:
exports.spawnmanager:setAutoSpawn(true)

License missing

I will just insert a Quote from someone else:

When you make a creative work (which includes code), the work is under exclusive copyright by default. Unless you include a license that specifies otherwise, nobody else can use, copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.

Chat edits to index.css ignored due to pointing to dist/index.css

Inside ../chat/html/

Index.css seems to either be ignored or only used once, any changes made to this file are not reflected on restart of the chat resource.

However, after looking at the fxmanifest I can see it refers to /dist/index.css and upon further inspection in nui devtools I can see the same, with no reference to the original file.

Took me a while to figure out, copied my changes to /dist/index.css and all was fine in the server again after restart command.

Not sure if this is an issue or not, just reporting my findings as it appears to be duplicating a file and ignoring the first one.

Couldn't Start Ressource Chat

How can i chat with you without github ? because you are the author of this ressource so if your ressources have a bug we need to mp you because you are the author and you are the only one to know the answer the five m forum doesn't know the answer because they are not the author of this ressources.

Weird Vehicle issue on linux server

sorry if this is the wrong place for this, I've already created a forum post which ended up dead

Having a weird issue where some add on vehicles won't spawn, they're loaded by the server but won't spawn, (using vmenu and simpletrainer for spawning) the menus detect that they exist, but when trying to spawn them, it stutters for a second, then says its spawned, but it hasn't and nothing even gets logged to the ingame console, the working vehicles will either spawn straight away or log that they are being downloaded.

Everything works fine on the windows server, and i tested another linux server using WSL and the same problem occured.

Windows server is running artifact 2007 on windows 1909
Linux server is running artifact 2001 (have tried others, issue was not fixed) on ubuntu 18.04.1

Doesn't work on windows 8.1

Hi, i have tried to know why the ressource is not loaded and i have found the problem. The "Yarn" and the "Webpack" is nodejs ressource and i don't know why but can be downloaded and build only on windows 10 so do you have an idea why ? and how to solve it please ?

Trace: 
  Error: write EIO
      at afterWriteDispatched (internal/stream_base_commons.js:150:25)
      at writeGeneric (internal/stream_base_commons.js:141:3)
      at WriteStream.Socket._writeGeneric (net.js:770:11)
      at WriteStream.Socket._write (net.js:782:8)
      at doWrite (_stream_writable.js:431:12)
      at writeOrBuffer (_stream_writable.js:415:5)
      at WriteStream.Writable.write (_stream_writable.js:305:11)
      at writeOnNthLine (D:\Server\resources\[system]\[builders]\yarn\yarn_cli.js:50249:12)
      at Spinner.render (D:\Server\resources\[system]\[builders]\yarn\yarn_cli.js:104572:48)
      at Spinner.start (D:\Server\resources\[system]\[builders]\yarn\yarn_cli.js:104562:10)

I know because i have installed the server on a new windows 10 computer.

Where is yarn being installed to?

Under resources/system/builders/yarn i see the script for the server plugin, But im not seeing where you guys packaged the binaries for yarn.

Im getting a EROFS: Read Only Filesystem, Yarn install failed. and i need to know where the binaries are being downloaded to fix the issue

Yarn failed error inside Docker container

Hopefully this is the right place to open this issue.

I get this error from catching them in the yarn_builder.js file whenever Yarn needs to be ran, in this case to build webpack.
This happens to all of the resources that require it, including the Chat resource.
I have the whole resources folder mounted inside of my docker-compose.yml file, so I really can't see why this would be happening.

It works on my Windows local server and builds the resources just fine.

image

Later on after going through all the resources it just tells me that building webpack failed and that Yarn failed.

image

My server artifact build is latest recommended.

No work change background-color

.chat-window {
position: absolute;
top: 0.5%;
left: 33.3333%;
width: 33.3333%;
text-shadow: 2px 1px 2px #000000;
height: 22%;
max-width: 640px;
background-color: rgba(0, 0, 0, 0.250); <-------- This not work 👎
-webkit-animation-duration: 2s;
}

problems with basic-gamemode

if a different resource changes gametype in manifest.. basic-gamemode stops it at startup.. and cannot be disabled since if i start the resource that changes gametype basic-gamemode gets stopped and resource "fivem" depends on basic-gamemode..

  1. server starts
  2. resource fivem starts and basic-gamemode starts changing gametype to "Freeroam"
  3. my gamemode gets stopped on startup because basic-gamemode loads with it
  4. if i start manually my gamemode basic-gamemode gets stopped
  5. if i enter the server FiveM client won't load resources as resource fivem misses its dependency basic-gamemode

Chat

I try to disable the chat completly for all users!
So I deleted all chat resources but the chat is still working...

hide chat ?

How to hide a chat after a certain number of seconds
It's too bad I can't hide the chat
What is the line responsible for this thing?

spawnmanger

as soon as you edit the spawn manger its causes your server to be hanged on awaiting scripts this is a error that needs to be fixed asap

unable to get Network ids for entities or request for control of ent.

From a perfect connection the "NetworkGetNetworkIdFromEntity" and "NetworkRequestControlOfEntity" work fine. but after some time, mostly after an obvious freeze (that happen often to everyone i know). the server will not return anything from these two functions, and it seems any others that ask anything of the network. "NetworkGetNetworkIdFromEntity" simply returns false and "NetworkRequestControlOfEntity" also returns false and will not give you control of any entity.

Patreon subscription

Hello i bought a patreon subscription today and i am trying to run server with one sync tells me that i am not whitelisted

Chat not fading/hiding

Self-explanatory. Chat is not switching off due to inactivity, remaining visible at all times.

chat:removeSuggestion does not allow re-adding the same command

As seen here:

ON_SUGGESTION_REMOVE({ name }) {
if(this.removedSuggestions.indexOf(name) <= -1) {
this.removedSuggestions.push(name);
}
},

and here:
computed: {
suggestions() {
return this.backingSuggestions.filter((el) => this.removedSuggestions.indexOf(el.name) <= -1);
},
},

this method actually blacklists a chat command suggestion, it doesn't remove it as mentioned in the docs: https://docs.fivem.net/events/client-events/#chat-events-resource-events

So once the chat:removeSuggestion method is called, trying to re-add the same suggestion later basically does nothing as there is a check to avoid adding the same suggestion back (since it was never removed from the this.backingSuggestions array).

This case prevents being able to set up "context sensitive" suggestions based on some state.

I would recommend one of the following:

  • rename the current method to something more akin to what it's currently doing (blacklist?) and add a chat:removeSuggestion that would work as described in the docs
  • change the current method to work as described in the docs

IMHO, I don't think anyone has a need for "blacklisting" a chat command so I would go with the second option.

Let me know what you think.

Happy to make a PR once we agree on something.

Man-In-The middle attack due to SSL CERT

The default certificate generated by the FXServer is trusted implicitly by the FiveM Client.
Users should always be warned - or have the option to accept the risk of connecting to servers which present an TLS Certificate not signed by a trust root certificate authority such as let's encrypt.

It seems the certificate is generated by FXServer in the event that none is present.
Users should be generating their own SSL Certificates if it's for friends, and using a service like let's encrypt, or COMODO, etc, if it's monetized, since it will be easy to provide justification.

image

image

image

awaiting scripts problem

Hello.
I have a big problem with basic-gamemode script! When I try to change name of this script to something to like myscript then I can't connect to server and server shows me bridge screen with awaiting scripts loading text.
Also I disabled fivem in server.cfg and add myscript but IDK why it doesn't work !!!!
When I saw this isn't work and the server didn't load, then I renamed back to basic-gamemode and add basic-gamemode in server.cfg... then it worked and server loaded.
So what's the damn problem????
Thank you for reading this and sry for my bad English

Current master HEAD is not working

0210252 with (recommended) 3593 server version doesn't work on linux (redm stucks on infinite loading screen with no errors in console and no errors in server log)
7680f31 with same server version works

My config

endpoint_add_tcp "***:30120"
endpoint_add_udp "***:30120"

ensure esplugin_mysql
ensure mysql-async
ensure redem
ensure redem_roleplay
ensure redemrp_identity

sets tags "roleplay"

sets locale "ru-RU"

set es_enableCustomData 1
set mysql_connection_string "server=127.0.0.1;uid=root;password=iloveasians;database=redemrp"
sv_hostname "***"

add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.fivem:1 group.admin # add the admin to the group
add_ace resource.redem command.sets allow
add_ace resource.redem command.add_principal allow
add_ace resource.redem command.add_ace allow

sv_endpointprivacy true
sv_maxclients 32

set steam_webApiKey "***"

sv_licenseKey ***

ensure redemrp_respawn #example

Default config from https://forum.cfx.re/t/how-to-setup-a-redm-server/918850 also didn't work with current master with same error

It should have started somewhere around march, first report I have found is this https://forum.cfx.re/t/redm-infinite-loading-screen-when-joining-a-server/1851267/33?u=qman228

bug: TypeError: Cannot read property 'minify' of undefined Terser

Expected Behavior: webpack will build upon first start
Current Behavior: An error occurs regarding the minify's dependency Terser

TypeError: Cannot read property 'minify' of undefined Terser

Reason: Terser 3.16, which is required by minify (and thus webpack) currently breaks interoperability.
See terser/terser#251
A fix is currently waiting to merged terser/terser#254

Solution: In the meantime, any latest webpack version is broken, hence if anyone has issues building with webpack. If you'd like to use webpack, you can force the webpack builder to use 4.12.0 om the builders package.json

https://github.com/citizenfx/cfx-server-data/blob/master/resources/%5Bsystem%5D/%5Bbuilders%5D/webpack/package.json

"webpack": "4.12.0", instead of "webpack": "^4.12.0",

I wanted to report this issue for any users getting this error. I think no PR/fix is needed as this should be a temporary issue. Perhaps for any future issues webpack can stay at 4.12.0?

Scripts not compatible with OneSync

There are still scripts, like rconlog which have loops that only loop through 32 players, thus not being compatible with onesync servers, could these be updated please to account for more than 32 players please.

Yarn and SessionManager-rdr3 Don't Work

Not sure when this was changed because I've not coded RedM in a while but whenever those resources were updated/modified it broke the ability to connect to a server and their loading in process with get stuck with no error. It seems I wasn't the only one with this issue reading the RedM support categories of the forums. The old yarn and sessionmanager-rdr3 work fine though. I have forked and reverted the files to show the issue https://github.com/RCPisAwesome/cfx-server-data

- delete

tar: Exiting with failure status due to previous errors

Chat is lagging

The chat-module is lagging for some of my players.
They tap T, the chat opens, but the input only shows up after about 10 seconds.
I can't reproduce the issue. There isn't anything useful (I guess) that I can provide - but if there is, please hit me up.

Yarn Load Failed And Webpack Load Failed | Solved

Hi, if your server can't load the webpack and yarn ressource it's very simple read the step below.

-- Work for windows 8.1

Step 1 : Open your server with your "start.bat" or your "yourlaunchername.bat".
Step 2 : Go on the top bar of the console and right click.
Step 3 : Go on properties and go in the fronts tab.
Step 4 : Select "Consolas" or "Lucida Console" in the fonts list.
Step 5 : Press "Ok" and restart your server.
Step 6 : Enjoy.

If the problem is not solved you can try to add "chcp 850" but it not worked for me.

for @technetium-cfx | You can solved this topic and don't delete it it's very important because i have solved the problem alone with your help for "chcp 850" and this can be useful for other peoples.

Please I need answers, I have this error and I cannot fix it alone

I put this code in my esx_rpchat

Server side

`RegisterCommand('mp', function(playerId, args, user)

if GetPlayerName(tonumber(args[1])) then
	local target = tonumber(args[1])
	table.remove(args, 1)
	
	TriggerClientEvent('chat:addMessage', target, { templateId = 'barrio', multiline = true, args = {" MP de | "..GetPlayerName(playerId).. "[" .. playerId .. "]: ^7" ..table.concat(args, " ")}, color = {0, 237, 237}})

	TriggerClientEvent('chat:addMessage', playerId, { templateId = 'barrio', multiline = true, args = {" MP enviado a | "..GetPlayerName(target).. "[" .. target .. "]: ^7" ..table.concat(args, " ")}, color = {0, 237, 237}})

else
	TriggerClientEvent('chat:addMessage', playerId, "⚠️ SISTEMA", {255, 0, 0}, "ID de jugador incorrecta!")
end

end,false)`

Client Side

TriggerEvent('chat:addTemplate', 'barrio', "<img src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNC4zLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDkwMi41OSA3NTQuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgOTAyLjU5IDc1NC43OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KCS5zdDF7ZmlsbDojOTE5MTkxO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qye2ZpbGw6dXJsKCNPam9fMV8xXyk7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KCS5zdDN7ZmlsbDp1cmwoI09qb18yXzFfKTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGcgaWQ9IlRyYXpvcyI+DQoJPGc+DQoJCTx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4Ny4xLDIxMy4xNSw0MTEuMjZ6Ii8+DQoJCTxwYXRoIGQ9Ik0xNTcuMzEsNjAyLjgxYzE3NS45Mi0zMy43MiwxNjguMzEtMTU0LjAxLDE1OS4yMy0xNjIuNzVjLTM1LjEzLDE1Ljk0LTQxLjMsMjMuMTMtODAuMiw2MS40NQ0KCQkJYzI5LjY1LDAuNzYsMzguMTQtMTMuNDgsNjMuNi0yOC44NWMtMTYuOTcsNDUuNzUtNzAuMDMsOTguODUtMTE2LjgxLDEwMi40NWMxNC4zOS03My41Miw3NC45LTEyMC45LDEwMS4yOS0xNDIuNDkNCgkJCUMyMDguMTYsNDMyLjIsMTU3LjA4LDU2OS44MSwxNTcuMzEsNjAyLjgxeiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJDYXBhXzIiPg0KPC9nPg0KPC9zdmc+DQo=' height='16'> <b>{0}</b>: {1}")

I follow the instructions in https://docs.fivem.net/docs/resources/chat/events/chat-addTemplate/

but, it only works when I restart the resource, if I exit and re-enter the server I receive this error

image

‘No such export’ despite setup properly and inline with cfx syntax

Hi!

I am learning LUA, and currently in development of a radial menu that my players can use to perform emotes, actions and in this case, I am attempting to implement a part of the menu that allows medics to revive using it. Because this is a separate resource, I am using exports to access the functions within the esx_ambulancejob resource. However, despite to my belief the script is throwing an error when attempting to access the GetDeath() function within esx_ambulancejob.

The exact error message I am recieving is:

https://i.imgur.com/V8VCpRf.png

and here is a partial part of the radial menu:

ESX = nil
Citizen.CreateThread(function()
    while true do
        Wait(5)
        if ESX ~= nil then
        else
            ESX = nil
            TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        end
    end
end)
 
local isJudge = false
local isPolice = false
local isMedic = false
local isDoctor = false
local isNews = false
local isInstructorMode = false
local myJob = "unemployed"
local isHandcuffed = false
local isHandcuffedAndWalking = false
local hasOxygenTankOn = false
local gangNum = 0
local cuffStates = {}
 
rootMenuConfig =  {
    {
        id = "general",
        displayName = "General",
        icon = "#globe-europe",
        enableMenu = function()
        fuck = exports["esx_ambulancejob"]:GetDeath()
            return not fuck
        end,
        subMenus = {"general:flipvehicle",  "general:checkoverself", "general:checktargetstates",  "general:keysgive",  "general:emotes",  "general:checkvehicle", "general:apartgivekey", "general:aparttakekey"  }
    },

Here is my fxmanifest.lua for the st_menu resource:

client_script {
    "config.lua",
	"client_menu.lua",
	"emotes_triggers.lua"
}

export "esx_ambulancejob"

ui_page "html/ui.html"

files {
	"html/ui.html",
	"html/css/RadialMenu.css",
	"html/js/RadialMenu.js",
	'html/css/all.min.css',
	'html/js/all.min.js',
	'html/webfonts/fa-brands-400.eot',
	'html/webfonts/fa-brands-400.svg',
	'html/webfonts/fa-brands-400.ttf',
	'html/webfonts/fa-brands-400.woff',
	'html/webfonts/fa-brands-400.woff2',
	'html/webfonts/fa-regular-400.eot',
	'html/webfonts/fa-regular-400.svg',
	'html/webfonts/fa-regular-400.ttf',
	'html/webfonts/fa-regular-400.woff',
	'html/webfonts/fa-regular-400.woff2',
	'html/webfonts/fa-solid-900.eot',
	'html/webfonts/fa-solid-900.svg',
	'html/webfonts/fa-solid-900.ttf',
	'html/webfonts/fa-solid-900.woff',
	'html/webfonts/fa-solid-900.woff2',
}

Any and all help is appreciated. I am willing to try anything and everything again, as I have tried many solutions to this to no avail.

Thanks in advance, Cameron.

i have Question

I'm in GIT (code .) I wrote and made a mistake. Error:
bash: code: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.