Hi,
What is the exact setting you are trying to set to false?
That will help me.
Wow thanks for a quick reply I set to false when first person enter the server at the mission.lua I also set to false the random mission and also set to true all the weapon load will be taken out after the mission thats the only thing I change
edit
its all in mission.lua I cant open my computer right now we got power shortage but I still remember what I change I hope this will help thanks
If you need the edited code I can send it tomorrow
Yes, the lines you edited would be helpful to know exactly what changed.
Thanks!
I took a quick look in client.lua for lines 262 and 390 and the nil Config looks to be due to a syntax error in missions.lua.
When you start the resource, do you see an error in client and/or server logs for missions.lua? Try swapping in an untouched/vanilla missions.lua to see if that fixes it. That will probably mean there is a syntax error when you edited.
here check this
i only change three things from mission.lua
line 2
line 5
and line 36
thats all i change
edit sorry for late reply i just walk up
i didnt touch anything beside on that file
every time i type in the chat for /list and /mission āMissionā
it gives error on the console even if untouched file but if i set the line 2 to true then the random
mission will start after the mission ended i canāt start another one
it gives error on the console even if untouched file
so if you dont change anything what is the error it gives in the console?
Lets start there. Was this with a blank server by itself or with vrp when you noticed this error?
also the pastebin link is a blank pastebin when I click on it.
yeah, sending me your missions.lua may help⦠to see if it happens for me.
I think you can just drag and drop it into the chat reply.
I used it on blank server it works perfectly fine but when i tested it on vrp this give me an error
https://forum.cfx.re/uploads/default/original/4X/0/f/e/0fe65c399ad8eca836d2aa2c0c52615946cc9e2e.jpeg
on the console
i used chat command /list and /mission Mission1
then it gives error
sorry i didnāt probably save the the file in pastebin
here it is
https://pastebin.com/97s8ApH6
please check the line
2, 5, and 37
OK, thanks.
So you also get the same error in the console with vrp without editing missions.lua? lt looks like missions.lua is not even being read, since Config={} is not being called at the top of the file, since it is nil.
Very odd.
I ran the config you gave me in a lua interpreter: https://repl.it/languages/lua
and there is no syntax error.
Does the same missions.lua, you attached, run fine on the blank server? I believe you said it does.
If it does then, then it must something outside of my resource, or how the resource was installed, or how it is interacting with the other resources or that server environment. I would check the server logs and/or client logs to see if you see any other errors when you stop/start the resource in the server.
where can I findo those log sorry im new
it will be in the server console (command line window), and for the client, in the client console, where you showed me the error. You can stop/start a specific resource on the server via the command line windowā¦i think it is start resourcename and stop resourcename
When you restart the resource, you should see some errors. Or if you dont want to do that⦠simply stop the server and relaunch it, and you will see resource errors show up on the server console, like the Config = nil error.
Not sure how many resources you have running on the vrp server⦠but try temporarily removing them to see if it fixes it, in order to rule out other resources. Or just start this resource without any other resource to see if that fixes it, then add resources back in.
im using zaphosting i cant use command console
they should have something to allow you to stop start server or stop/start resources and see the logs or console somewhere. I have never used zaphosting. Their support may be able to help you on that.
here i got the server log
it says that
Creating script environments for missionevent
Error parsing script @missionevent/missions.lua in resource missionevent: @missionevent/missions.lua:1: unexpected symbol near ā<\239>ā
Failed to load script missions.lua.
hereās another one i tried to revert all the setting to default and tried again
https://pastebin.com/nmurs3iY
as I expected, missions.lua is not getting read/parsed properly.
If you are uploading the lua files to the server, make sure you are not using binary⦠but text/ascii format, if the server is running on linux
Other than that, this is something to do with the zap hosting environment. Contact their support and they can help you.
sir i tried to re upload the untouched script it seems it work alright but if i change any setting mission.lua is not read properly
I understand, but that is not a problem with my resource. Changing a value from true to false or vice versa will not cause that parse error of the lua file itself. Whatever is reading the missions.lua has the problem. It could be the editor you are using is adding some characters. Its something environmental.
Do you run a local server on your local machine? You may want to test there to see if you get the same error.
I think rhe zap hosting its not the first time actually I installed untouched package of vrp and I only change the reward value of basic mission and the basic mission is not working all of a sudden I contact the support and it seems that they dont know either what is wrong but thank you for your help
Iām sorry that it is not working for you. Like I mentioned, run a local server if you can and see if it happens there. That might help determine what is going on.
I will be putting in an update to this resource soon, and will test your missions.lua you pasted when I do, just in case⦠but I ran it in an online lua interpreter and it parsed fine, unlike what is happening in the console message you showed me.
Good Luck!
Please. Help
how can i set for only cops to do these mission?
How are cops defined, by their ped models?
If so you would need to change the code to do a search on the ped model that the player has, and if a cop model then give mission, else do not. There are multiple ways to assign missions, with safe houses or not, depending on your missions.lua setup.
You will need to go through the code and make the changes yourself, as I do not support this.