vrp-official-developers / dunko_vrp Goto Github PK
View Code? Open in Web Editor NEWDunko vRP V6.7
License: Other
Dunko vRP V6.7
License: Other
For some reason I cannot get the menu to work. When it manages to open, it freezes the game when I try to either use a function or buy something. It locks up my keyboard except for the function keys.
Hi,
first i have to think you for everything all this project free :) You are the best
secondly , when i change the name of jobs in
vrp/cfg/groups.lua
to my language " Arabic "
its changed without any issue
after i login to the game and choose the job everything is good
but after i logout and login again or restart the server
that job i chosen its disappears and i have to take my job again every time
when i log in or restart the server
i hope you help me with this issue
i'll be thankful ,, and i'm sorry for my bad English :)
Hello, guys :)
I'm trying to create a server on Ubuntu 14.04. I followed FXServer's and DunkoRP's tutorials, and everything went smooth, except for this mySQL error when I open the server, which I believe is related to vrp_mysql.
Copy of stack trace:
Started resource vrp_mysql
Loaded MySqlConnector, Version=0.19.5.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_404011212
Loaded System.Threading.Tasks.Extensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_404011212
Loaded System.Buffers, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_404011212
System.DllNotFoundException: libmono-btls-shared
at (wrapper managed-to-native) Mono.Btls.MonoBtlsSslCtx:mono_btls_ssl_ctx_new ()
at Mono.Btls.MonoBtlsSslCtx..ctor () [0x00000] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Btls.MonoBtlsContext.InitializeConnection () [0x00000] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Btls.MonoBtlsContext.StartHandshake () [0x00000] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncProtocolRequest asyncRequest, Mono.Net.Security.AsyncOperationStatus status) [0x00004] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (Mono.Net.Security.AsyncOperationStatus status) [0x0006b] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation () [0x0000d] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation () [0x0003c] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation (Mono.Net.Security.AsyncOperation operation) [0x00024] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00057] in <80ac2c109e004b07b5da4d5c71df6862>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00078] in <80ac2c109e004b07b5da4d5c71df6862>:0
at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000c] in <80ac2c109e004b07b5da4d5c71df6862>:0
at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <80ac2c109e004b07b5da4d5c71df6862>:0
at MySql.Data.Serialization.MySqlSession+<InitSslAsync>d__59.MoveNext () [0x0034f] in <c9032194188746cfa5d8bb7625c7912b>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at MySql.Data.Serialization.MySqlSession+<ConnectAsync>d__48.MoveNext () [0x00461] in <c9032194188746cfa5d8bb7625c7912b>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at MySql.Data.MySqlClient.ConnectionPool+<GetSessionAsync>d__0.MoveNext () [0x00476] in <c9032194188746cfa5d8bb7625c7912b>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at MySql.Data.MySqlClient.MySqlConnection+<CreateSessionAsync>d__66.MoveNext () [0x00101] in <c9032194188746cfa5d8bb7625c7912b>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at MySql.Data.MySqlClient.MySqlConnection+<OpenAsync>d__17.MoveNext () [0x000cb] in <c9032194188746cfa5d8bb7625c7912b>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <fb0d2884a2b44d8db375bbed7cc70740>:0
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00012] in <c9032194188746cfa5d8bb7625c7912b>:0
at vRP.MySQL.e_createConnection (System.String name, System.String config) [0x0000f] in <8dfc0861f4df44189d833de5e878b97b>:0
[vRP] launch version 1498403827
Screenshot: https://imgur.com/OlLWTiB
After this, lots of "[vRP/C#] connection vRP not found" errors. I believe it has something to do with this line
System.DllNotFoundException: libmono-btls-shared
But I have no idea how to fix it. I installed the package "mono-complete", and there is a "libmono-btls-shared.so" on my /usr/lib folder, so I'm pretty lost...
I appreciate any help :) Thanks!
The garages don't work for all the people on the server.
For some they work, for some they don't. I don't know what that is from.
Hi Dunko,
so for the last couple of days I have been looking into FiveM at the request of my son, who wants to run a server for his mates. The lack of documentation makes starting from scratch a non-starter. Came across vRP and thought yep, framework in place, but even here you either know it or don't. Really, really pleased to see dunko_vrp on GitHub ... thought job solved, but doesn't work straight from rep and so comes down again to documentation .. quite a few errors in server startup, and I wonder if I even have the MySQL DB set up correctly.
So four questions. (was 2 originally :))....
Is it usual to get a lot of error messages on server startup?
MySQL is running and I have a database called vRP (with appropriate references in server.cfg and vrp/cfg/base.lua), but is there an easy way to check that this is working fine with with vRP? If I look at the DB in HeidiSQL it shows there is nothing in it.
Do you have some links for sites with helpful info? Where did you learn from?
I can't seem to find any details about how to invoke admin functions. Hotkey list ?
And finally, when I log onto the server, I am fixed in position, no movement and sometime below ground level.
Apologies for the assault (figurative), wanting to learn more, but finding it hard to find something to read other than endless YouTube videos about how to install FXServer, rather than developing the server.
Cheers bud!
Hey mate,
Having a major issue with the 'Identity' feature of this download.
The issue we're having is after a couple times connecting to the server or even straight away.
A lot of users are unable to connect with the prompt of "vRP Identification error" and they are completely unable to join, until I remove them from the database and they basically have to restart.
Please inform me of what information you need from me and I can get that sorted out for you asap.
Thank you,
Joliek,
In the spanish file located here: https://github.com/DunkoUK/dunko_vrp/tree/master/vrp_basic_mission/cfg/lang
The first line it is upside down
Hello,
I Become to Join this Error:
fetching info from server fail
who i can fix this? :D
how to spawn more of the same types of vehicle but not the same model?
Hello! If I connect I get id 1, after that I connect again I got id 2 but I want them static like for 1 guy with steam and R* id 1 another guy steam and R* id 2 how to do so?
The installation works. However, when i modify groups.lua in vrp/cfg folder, the menu doesn't open. I am sure there are no syntax errors.
You can Duplicate Weapons by doing the the following
Store Weapons and then Disconnect from server and rejoin back to server and it duplicates the weapons so u have 1 in your inventory and 1 on you loaded
Hi, when i got full vrp server i had all functions in admin menu, but today i see as i do not have spawnveh, tptowaypoint and more, please help , thanks!
The chop shop currently suffers from a race condition where the price to sell a vehicle cycles quickly with multiple people online, and driving due to a few factors...
https://github.com/DunkoUK/dunko_vrp/blob/master/vrp_chopshop/server.lua#L37 The "setVehPrice" event is being broadcast to the entire server, instead of the client actually requesting the "getVehPrice", which means other clients (while driving) are setting the price of your vehicle, when they shouldn't.
The client thread is constantly requesting the current price (when it should only be requesting while near the actual marker), causing unnecessary network strain, and CPU hogging.
Simple fix; change "-1" to "source" and at least the vehicle sell price craziness goes away. Other modifications are needed to lessen the strain on the CPU and network from polling these events every single chance it gets while the player is in a vehicle.
[vRP/C#] query exception vRP/update_user_identity : System.AggregateException: O
ne or more errors occurred. ---> MySql.Data.MySqlClient.MySqlException: Paramete
r '@registration' must be defined. To use this as a variable, set 'Allow User Va
riables=true' in the connection string.
at MySql.Data.MySqlClient.MySqlStatementPreparer+ParameterSqlParser.OnNamedPar
ameter (System.Int32 index, System.Int32 length) [0x0005b] in <c9032194188746cfa
5d8bb7625c7912b>:0
at MySql.Data.MySqlClient.MySqlParser.Parse (System.String sql) [0x001be] in <
c9032194188746cfa5d8bb7625c7912b>:0
at MySql.Data.MySqlClient.MySqlStatementPreparer.ParseAndBindParameters () [0x
0003a] in :0
at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor+d__3.MoveNext () [0x000c6] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] i
n <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Thre
ading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNoti
fication (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7
e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.T
asks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwa iter[TResult].GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor+<ExecuteNonQuer yAsync>d__1.MoveNext () [0x00094] in <c9032194188746cfa5d8bb7625c7912b>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] i n <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Thre ading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNoti fication (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7 e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.T asks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x0000
0] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at vRP.MySQL+<>c__DisplayClass11_2+<<e_query>b__0>d.MoveNext () [0x0022c] in <
8dfc0861f4df44189d833de5e878b97b>:0
--- End of inner exception stack trace ---
---> (Inner Exception #0) MySql.Data.MySqlClient.MySqlException (0x80004005): Pa
rameter '@registration' must be defined. To use this as a variable, set 'Allow U
ser Variables=true' in the connection string.
at MySql.Data.MySqlClient.MySqlStatementPreparer+ParameterSqlParser.OnNamedPar
ameter (System.Int32 index, System.Int32 length) [0x0005b] in <c9032194188746cfa
5d8bb7625c7912b>:0
at MySql.Data.MySqlClient.MySqlParser.Parse (System.String sql) [0x001be] in <
c9032194188746cfa5d8bb7625c7912b>:0
at MySql.Data.MySqlClient.MySqlStatementPreparer.ParseAndBindParameters () [0x
0003a] in :0
at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor+d__3.MoveNext () [0x000c6] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] i
n <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Thre
ading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNoti
fication (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7
e0d4b28acb>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.T
asks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwa iter[TResult].GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor+<ExecuteNonQuer yAsync>d__1.MoveNext () [0x00094] in <c9032194188746cfa5d8bb7625c7912b>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] i n <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Thre ading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNoti fication (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7 e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.T asks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x0000
0] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at vRP.MySQL+<>c__DisplayClass11_2+<<e_query>b__0>d.MoveNext () [0x0022c] in <
8dfc0861f4df44189d833de5e878b97b>:0 <---
[vRP] task 2075 failed.
https://gyazo.com/2992dd889668d7ff7b7036ba1a719bec
Is anyone able to tel me what this means?
When talking in chat it is using the Steam Name instead of the In Character Identity. Shouldnt this only be so if using OOC Chat?
I seem to have this problem with normal chat as well as /me
Hi, i have a problem, when i start the server it remains blocked while opening the mysql connection. I get this message on console ( Error: Loop svMain seems hung! (last checkin 90 seconds ago) ). Someone says to update mysql-async, and i already have the last version. Any solutions?
Good Day. It seems like: deleting/adding Scripts to the Server.cfg has no effect.
Is there any trick?
Hey, Is there any way it is possible to save the car damage when you park the car in the garage?
tattoos don’t save
Aswell as customisable cars once you’ve customised them then log off then log back on they are normal again
hi, the Arabic language is not working at all, I've edited many files and still not working.
Hello,
I have a problem, when my character is dead I can not open the phone, I wanted to ask if there is any configuration that changes this.
Thank you,
Diogo.
Hi, All Recent Players who join my server are fine but when a new player joins server the server crashes with vRP Error _> init_user_identity
Task Failed
I got the problem with identity. When i join in server and i look on scoreboard my name is like change me like normal. But when i try to change identity i get the error in console http://prntscr.com/l8us49 and in game scoreboard shows http://prntscr.com/l8uukm also its shows this on fresh files no editing or something SORRY FOR BAD ENGLISH
Git hash : 4ff3d26
Issue : Dead and then come back to life after re-join.
Since there is no "on player disconnect" event handler inside the bank robbery script that registers and removes the current robbery if x player is currently the one robbing X bank, one can simply logout, log back in and quickly go away and still earn the dirty money.
How to add my language?
I have create /vrp/cfg/lang/kr.lua (Copy en.lua -> kr.lua and translate my language)
But in game not support new language.
in vrp/cfg/groups.lua
under user player.check is added twice, not sure if this is intentional.
in vrp/modules/money.lua
line 162 consider making wallet = math.floor(tmp.wallet) and bank = math.floor(tmp.bank)
to remove long numbers, and annoy players less.
line 170 consider making wallet = math.floor(v.wallet) and bank= math.floor(v.bank).
again, to remove long numbers.
Other than that, keep up the good work, love using this, but always have to add these things on my own/comment them out multiple times for the same user.
Git hash : 4ff3d26
Issue : mission random cargo ( -1 and ....)
Hi I am running a Dunko vRP server with the rocademption queue but we are having problems with users that after the spawn in the Main Hospital they have no money HUD , Hunger &Thirst full , Their ID is not in the player list . Server cfg :
sv_authMaxVariance 1
sv_authMinTrust 5
No essesiatialmode installed
Thanks in advance for the help
Hello guys. I have a question: i recently made a societies script for vrp that can let you update the paycheck of each rank. I was wondering if is there a way to create a sub-menu inside the society menù (that i have already built) to show just the paycheck of that rank:
example:
Captain: 2000
Liutenent: 1000
ecc....
without any function triggered on click.
I am trying to enter a server in Fivem and it keeps telling me: [vRP] identification Error. I tried deleting the cache multiple times but I was unsuccessful in my attempt to join the server. Could anyone try to help me? I will tell you more details if necessary.
�[91mSCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.�[0m
�[93m> cb�[0m (�[36m@vrp_garages/server.lua�[0m:113)
�[93m> handler�[0m (�[36m- begin MySQL module
local MySQL = {}
MySQL.debug = false
local dpaths = {}
local tasks = {}
--[[
local function tick()
SetTimeout(1, function() -- protect errors from breaking the loop
SetTimeout(1000, tick)
local rmtasks = {}
for id,cb in pairs(tasks) do
local r = exports.vrp_mysql:checkTask(id)
if r.status == 1 then
cb(r.rows,r.affected) -- rows, affected
table.insert(rmtasks, id)
elseif r.status == -1 then
print("[vRP] task "..id.." failed.")
table.insert(rmtasks, id)
end
end
-- remove done tasks
for k,v in pairs(rmtasks) do
tasks[v] = nil
end
end)
end
tick()
--]]
AddEventHandler("vRP:MySQL_task", function(task_id, data)
-- print("vRP:MySQL_task "..task_id)
local cb = tasks[task_id]
if data.status == 1 then
if cb then
if data.mode == 0 then
cb(data.affected or 0)
elseif data.mode == 1 then
cb(data.scalar or 0)
elseif data.mode == 2 then
cb(data.rows or {}, data.affected or 0) -- rows, affected
end
end
elseif data.status == -1 then
print("[vRP] task "..task_id.." failed.")
end
tasks[task_id] = nil
if MySQL.debug and dpaths[task_id] then
print("[vRP] MySQL end query "..dpaths[task_id].." ("..task_id..")")
dpaths[task_id] = nil
end
end)
local task_id = -1
AddEventHandler("vRP:MySQL_taskid", function(_task_id)
-- print("vRP:MySQL_taskid ".._task_id)
task_id = _task_id
end)
-- host can be "host" or "host:port"
function MySQL.createConnection(name,host,user,password,db,debug)
-- print("[vRP] try to create connection "..name)
-- parse port in host as "ip:port"
local host_parts = splitString(host,":")
if #host_parts >= 2 then
host = host_parts[1]..";port="..host_parts[2]
end
local config = "server="..host..";uid="..user..";pwd="..password..";database="..db..";"
-- TriggerEvent("vRP:MySQL:createConnection", name, config)
exports.vrp_mysql:createConnection(name, config)
end
function MySQL.createCommand(path, query)
-- print("[vRP] try to create command "..path)
-- TriggerEvent("vRP:MySQL:createCommand", path, query)
exports.vrp_mysql:createCommand(path, query)
end
-- generic query
function MySQL._query(path, args, mode, cb)
-- TriggerEvent("vRP:MySQL:query", path, args)
if not (type(args) == "table") then
args = {}
end
-- force args to be a C# dictionary
args._none = " "
-- exports.vrp_mysql:query(path, args)
-- print("[vRP] try to query "..path.." id "..task_id)
TriggerEvent("vRP:MySQL_query", path, args, mode)
if MySQL.debug then
print("[vRP] MySQL begin query (m"..mode..") "..path.." ("..task_id..")")
dpaths[task_id] = path
end
tasks[task_id] = cb
end
-- do a query (multiple rows)
--- cb(rows, affected)
function MySQL.query(path, args, cb)
MySQL._query(path, args, 2, cb)
end
-- do a scalar query (one row, one column)
--- cb(scalar)
function MySQL.scalar(path, args, cb)
MySQL._query(path, args, 1, cb)
end
-- do a execute query (no results)
--- cb(affected)
function MySQL.execute(path, args, cb)
MySQL._query(path, args, 0, cb)
end
-- return module
return MySQL
�[0m:45)
�[93m> fn�[0m (�[36m@vrp_mysql/init.lua�[0m:3)
�[91mSCRIPT ERROR: @vrp/lib/utils.lua:43: attempt to call a nil value (upvalue 'callback')�[0m
�[93m> fn�[0m (�[36m@vrp/lib/utils.lua�[0m:48)
ANY IDEAS ON HOW TO FIX THIS?
Hello there! I need ur help please! I tried several things and cant get rid of that id error. Its driving me nuts mate. I have have it like in pictures, but nothing works tried both local and 127.0.0.1 but same thing happens...
measlystorm#2351 Add me directly if u want to help me there.
Thank you for any response u give.
Hi!
I am trying to make the coordinates of the missions not random and follow an order I tried to add this to vrp_bassic_mission / server.lua
-- line 48 position = v.positions[math.random(1,#v.positions)]
changing the math.random for this function:
aux = 0
function aumentar(min, max)
local numero = 0
if numero <= max then
numero = min + aux
end
aux = aux + 1
return numero
end
and the result is:
-- line 48 position = v.positions[aumentar(1,#v.positions)]
The mission works well until you finish it and the error is as follows:
Error resuming coroutine: @vrp/modules/mission.lua:42: bad argument #1 to 'unpack' (table expected, got nil)
stack traceback:
[C]: in function 'table.unpack'
@vrp/modules/mission.lua:42: in field 'nextMissionStep'
@vrp/modules/mission.lua:25: in local 'f'
[string "-- Proxy interface system, used to add/call f..."]:39: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
Thanks for the help and thanks for the work :)
Hi Dunko i install your great work on my Server.
But i hav e Bug in the Dialog. I cant close the Dialogs!
Can you help me for fix that?
I installed it but when i load into game i don't have a player model, im invisible and a cannot move around
Is there anyway to store the ban reason in the same vrp_users table?
First off great mod i appreciate the time effort put into this script. The issue i am having is when i have vrp on in my server guys get stuck in solo sessions and when i turn off vrp everyone is able to get into my server. So we have had vrp for almost a year and never had that problem. FiveM had an update last week and now its a problem. I dont know if i edit something wrong i vrp ,but when i put in back up files of vrp i still get the issue.
When i try to use whitelist, and some players try to join server maybe he get this error, i've searching for a solution but i have not found nothing and not many posts about it.
Hi, I don't know is it a problem or not, but when i upgrade custom car for example i change a color and then when i store it and i take again out it goes in main color that i bought and all upgrades are removed also.
Sorry for bad english
Hi,
i get this error in console:
Error resuming coroutine: modules/admin.lua:406: attempt to call a nil value (field 'getUsersByPermission')
stack traceback:
modules/admin.lua:406: in function 'task_god'
I think its because my grouop.lua file but i cant figure out where is the problem
My file:https://hastebin.com/ayefitayun.lua
Tanks,
TopKiller
Hi, when some players join in server, they just stay frozen in spawn and cannot do anything (no errors on client log and server log), they are invisible and locked, i think is something released to identity because anything they do with requires identity say a error, this is fixed when i reboot server but affect others people after.
hello good wishes for vph but I have a problem when starting the server I rebooted all the changes why?
How to install in linux server
Tanks,
TopKiller
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.