#cw-rep
1 messages · Page 1 of 1 (latest)
cwhelp
To get support please read through [these guidelines](#1199274444271648828 message). Go over each step. Not all the steps might be relevant to the script you're having an issue with, but if you want help we'll require you to fill it out.
Copy paste the questions and answer in this thread and we'll see what we can do. You can remove the extra text from under each question and just keep the question.
I understand it
Well you need give us more information then it dont start. Do you have logs
means i add script but skills and rep system is not working proper
I think you might be struggling a bit with english. Maybe you could find someone who could translate the readme for you.
I get the feeling you did not follow the instructions correctly and add the system to your scripts.
i understand every think in readme but i dont know where to add that exports
@steep sandal
@quaint grove
Exports you can put anywhere you want give where you want to give skill points
In the readme it say the two options cliënt export and server export
So it up to you where you do the export
When you do additem of mining is succes then best do the export. Most payout are server side script that is for the exploit
how to use this
You add the line with the skillname and amount number
in client side or server side
That is client side
Server side is scroll down
this is client side
Well where is payout event
Look for additem
There you add the export server side
exports["cw-rep"]:updateSkill(src, 'mining', 1)
Show the line what the error is client.lua Jim mining
Remove line 2
Then start again
Add this under triggerclientevent
exports["cw-rep"]:updateSkill(src, 'mining', 1)
in which trigger client event
Under the trigger in newline
Please dont tag me every time
now what to do
mining needs to be in quotation marks
you're sending an undefined variable right now
Also, mining doesn't exist in cw-rep so you have to add it in there also. Instructions are in the readme
ok
Do it work?
no bro
this error show
Do you have add mining skill in the config?
RegisterServerEvent("jim-mining:Reward", function(data)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
local amount = 1
if data.mine then
TriggerEvent("jim-mining:server:toggleItem", true, Config.CrackPool[math.random(1, #Config.CrackPool)], math.random(2, 6), src)
exports["cw-rep"]:updateSkill(src, 'mining', 10)
elseif data.crack then
This like in the code
@sand sparrow
no
No not in the config??
you mean this whole code
in config file
ok
this code were to add
Yes
mining = {
icon = 'fas fa-wrench',
},
In your config lua
you can add here a mining skill
And then try agian
becaus you need the add skill in the config because default there is no mining skill
can you share the lua file with me?
its work
but its not show notification
no
You can get notifications for all skill gain/loss now with Config.ShowNotificationOnSkillGain
but I doubt Vardhaman read through the config 

dont know... not my problem it qb-target..
ok
Change to ox_ much better 
drugsales
okay, whats the code its trying to run at client.lua:72?
and how did you implement it in ur script
add 'drugSales' instead of just the word. Like this:
exports["cw-rep"]:updateSkill(src, 'drugSales', 1)
Super easy, just delete your fiveM folder at this point tbh.
@sand sparrow I totally get you may need some help but you really gotta figure this stuff out if you plan on doing anything with this. Read the damned config file for starters
Thanks its work proper.
help
You didn't enable cw rep in cw crafting. it's a config option
thanks you
can anyone explain how i lock content behind rep? I cant figure out how I work on the server side (noob)
- Don't Necro others threads that's not related to you problems
- It's explained in the readme. You need to add checks in the scripts where you want to use it.
my bad, I thought this was the cw-rep section
what file to you actually add the exports in?
Any client or serverside file where you want/need to use rep
