Hey guys so I downloaded some scripts that use require and on the forums I can see that I need to change it to server_script but that doesn’t work neither, what should I do ?
What? Read the porting notes. It’s simple.
What porting notes?
pleas telll me
Please review the porting notes below
https://wiki.fivem.net/wiki/Running_FXServer#Porting_Notes
I tried using server_script and import and it didn’t work !!!
That’s not what the porting notes say to do.
That’s what I understood from them, can you tell me what to do please???
I have the same issue, can you help me guys? The porting notes don’t work
This is what happens: http://prntscr.com/ib4af5
Because ‘required’ isn’t used anymore. Why are declaring server_script as a global value? The server_script should be the resource it depends on.
It should be declared in the __resource.lua, not the script its self.
I did that and when the lua script tries to acces MySQL it gives the same error
Reference the porting notes and the asynchronous MySQL documentation.
And how do I reference the porting notes?
@shayan_doust already posted them. Step 1. Read. Step 2. Comprehend. Step 3. Act.
I saw it, but I don’t understand and that’s the problem, could anyone explain or give me an example please?
Well, read it till you comprehend it. As for examples umm, the porting notes and the MySQL documentation both include examples.
I don’t see any local MySQL -= …
Because it’s not used anymore. Set the convars in the server config. Like the documentation states.
I don’t see any convars in the documentation -_-
I only have the connection one but it doesn’t help
Configuration
Add this convar to your server configuration and change the values according to your MySQL installation:
set mysql_connection_string “server=127.0.0.01;database=gta5_gamemode_essential;userid=root;password=1202”
Missed that huh?