[Release] Roleplay Test (form) on first connection (06/05/2017)

Hi mate great script I have a question
Is this working with the VRP framework because I trying putting the sql in my data base and I get thiis error https://gyazo.com/a88942dd4a224e797938153cc8c5607a

do you have a solution that may fix my problem?

because when I load into the server it still does not even load the character menu it just spawns me in a different location randomly!

Many thanks Kyle

Nice release, to much work to include it. I will take the dvmschool script :wink:

Please can anyone update this script?

Would be great!

Somebody has a idea?

Creating script environments for antirpquestion
Error loading script server.lua in resource antirpquestion: @antirpquestion/server.lua:1: attempt to call a nil value (global ‘require’)
stack traceback:
@antirpquestion/server.lua:1: in main chunk
Failed to load script server.lua.
Started resource antirpquestion

antirpquestion\ __resource.lua

server_scripts {
@mysql-async/lib/MySQL.lua’,

\antirpquestion\server.lua

–[[ ***** EVENTS GUI ***** ]]
RegisterServerEvent(“antirpquestion:kick”)
AddEventHandler(“antirpquestion:kick”, function()
DropPlayer(source, “Vous n’avez pas reussi le questionnaire, reessayez.”)

end)

RegisterServerEvent(“antirpquestion:success”)
AddEventHandler(“antirpquestion:success”, function()
TriggerEvent(“es:getPlayerFromId”, source, function(player)
MySQL.Sync.execute(“UPDATE users SET question_rp=‘made’ WHERE identifier = ‘@username’”, { [’@username’] = player.identifier})

end)

end)

–[[ ***** SPAWN ***** ]]
RegisterServerEvent(“antirpquestion:didQuestion”)
AddEventHandler(“antirpquestion:didQuestion”, function()
TriggerEvent(“es:getPlayerFromId”, source, function(player)
local result = MySQL.Sync.fetchAll(“SELECT users.identifier FROM users WHERE users.question_rp = @question_rp”, {
[’@question_rp’] = questionMade
)
})
if (questionMade == “false”) then

        TriggerClientEvent('antirpquestion:notMade',source)
    end
end)

end)

not work :frowning:
Help me plz…

i get this error:

Error running call reference function for resource antirpquestion: citizen:/scripting/lua/scheduler.lua:355: @antirpquestion/server.lua:21: attempt to index a nil value (global 'MySQL')
stack traceback:
        @antirpquestion/server.lua:21: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:341: in function <citizen:/scripting/lua/scheduler.lua:340>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:340: in function <citizen:/scripting/lua/scheduler.lua:339>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:355: in function <citizen:/scripting/lua/scheduler.lua:324>
        [C]: in function 'coroutine.resume'
        citizen:/scripting/lua/scheduler.lua:20: in function <citizen:/scripting/lua/scheduler.lua:14>
        (...tail calls...)
        citizen:/scripting/lua/scheduler.lua:168: in function <citizen:/scripting/lua/scheduler.lua:132>
Error resuming coroutine: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
        citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
        citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
        citizen:/scripting/lua/scheduler.lua:578: in local 'cb'
        @essentialmode/server/player/login.lua:134: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:169: in function <citizen:/scripting/lua/scheduler.lua:168>

someone an idea?

hm i cant get it work from esx ;l

The resource is out of date and doesn’t work.
I don’t think the author is going to fix it any time soon as seen by their activity on the forums.
If you have any problems you will need to ask your enquiries elsewhere unless a member of the community adheres a solution and provides it.
May this be a note for anyone who wishes to comment on this post.

Working version released ?

It wont be fixed believe me the author isnt active .

Maybe someone who forked it on Github?

It takes about 10 minutes to revert it to current servers. I got mine working, just figuring out how to merge it with kashacters.

can you share us corrected version?

Can you shared the changes?

The SQL file is not showing on my database . I have tried hitting refresh button and adding it again but its not showing in by essentialmode database

Is there no one in here who has the problem that players who pass the test have to create a character and therefore need a cursor… wich isnt there anymore ???

i am getting this error someone here to help me?