#cw-rep

1 messages · Page 1 of 1 (latest)

sand sparrow
#

yes but i dont know why is now working @quaint grove ☕

#

@quaint grove

quaint grove
#

cwhelp

broken agateBOT
#

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.

sand sparrow
#

means

#

@quaint grove

quaint grove
#

Not sure what is unclear about this?

steep sandal
#

I understand it

sand sparrow
#

ok

#

tell me how i can fix cw-rep proper with every script

#

@steep sandal

steep sandal
#

Well you need give us more information then it dont start. Do you have logs

sand sparrow
#

means i add script but skills and rep system is not working proper

quaint grove
sand sparrow
#

i understand every think in readme but i dont know where to add that exports

#

@steep sandal

#

@quaint grove

steep sandal
#

Exports you can put anywhere you want give where you want to give skill points

sand sparrow
#

ok

#

were to add exports in which lua client or server @steep sandal

steep sandal
#

In the readme it say the two options cliënt export and server export

#

So it up to you where you do the export

sand sparrow
#

ok

#

suppose i need to mining skill just i need to add export in client

steep sandal
#

When you do additem of mining is succes then best do the export. Most payout are server side script that is for the exploit

sand sparrow
#

how to use this

steep sandal
#

You add the line with the skillname and amount number

sand sparrow
#

in client side or server side

steep sandal
#

That is client side

sand sparrow
#

like this

steep sandal
#

Server side is scroll down

sand sparrow
steep sandal
#

Well where is payout event

sand sparrow
#

this is server side

steep sandal
#

Look for additem

sand sparrow
#

@steep sandal

steep sandal
#

There you add the export server side

#

exports["cw-rep"]:updateSkill(src, 'mining', 1)

sand sparrow
#

ok

#

@steep sandal

#

i got this error

steep sandal
#

Show the line what the error is client.lua Jim mining

sand sparrow
steep sandal
#

Remove line 2

sand sparrow
#

remove

#

@steep sandal

steep sandal
#

Then start again

steep sandal
# sand sparrow

Add this under triggerclientevent

exports["cw-rep"]:updateSkill(src, 'mining', 1)

sand sparrow
#

in which trigger client event

steep sandal
#

Under the trigger in newline

sand sparrow
#

@steep sandal

steep sandal
#

Please dont tag me every time

sand sparrow
#

ok

#

sorry

sand sparrow
quaint grove
#

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

sand sparrow
#

ok

steep sandal
#

Do it work?

sand sparrow
sand sparrow
steep sandal
#

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

sand sparrow
#

no

steep sandal
sand sparrow
#

in config file

steep sandal
#

No

#

that is for you mining script

sand sparrow
#

ok

steep sandal
#

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

sand sparrow
#

look i already added

sand sparrow
#

get this error

#

@steep sandal

#

hey man thanks for you help

steep sandal
#

can you share the lua file with me?

sand sparrow
#

its work

steep sandal
#

o

#

nice

sand sparrow
#

but its not show notification

steep sandal
#

notification show only when you are at the level

#

do you have 50 points already

sand sparrow
#

no

steep sandal
#

this is the default level

#

So it yup to 8

#

0 - 100 is the xp

#

for 1 level

quaint grove
#

You can get notifications for all skill gain/loss now with Config.ShowNotificationOnSkillGain

#

but I doubt Vardhaman read through the config PepeLaugh

steep sandal
sand sparrow
#

@steep sandal

steep sandal
#

dont know... not my problem it qb-target..

sand sparrow
#

ok

timid fractal
#

Change to ox_ much better kek

sand sparrow
#

ok

timid fractal
#

which skill you're trying to use?

#

or add

sand sparrow
#

drugsales

timid fractal
#

okay, did you add that in the config?

#

as a skill

sand sparrow
timid fractal
#

okay, whats the code its trying to run at client.lua:72?

#

and how did you implement it in ur script

sand sparrow
#

look like this

timid fractal
#

add 'drugSales' instead of just the word. Like this:

exports["cw-rep"]:updateSkill(src, 'drugSales', 1)

sand sparrow
#

ok

#

bro do you know how to add server owner details

timid fractal
#

?

#

Is that related to cw in anyway kek

sand sparrow
#

how to turn off debugging in console

#

@timid fractal

timid fractal
#

debug = false maybe

pearl drum
#

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

sand sparrow
#

Thanks its work proper.

sour fog
quaint grove
sour fog
#

thanks you

maiden spade
#

can anyone explain how i lock content behind rep? I cant figure out how I work on the server side (noob)

quaint grove
# maiden spade can anyone explain how i lock content behind rep? I cant figure out how I work o...
  1. Don't Necro others threads that's not related to you problems
  2. It's explained in the readme. You need to add checks in the scripts where you want to use it.

https://github.com/Coffeelot/cw-rep/?tab=readme-ov-file#the-export-to-check-to-see-if-a-skill-is-equal-or-greater-than-a-particular-value-is-as-follows

GitHub

Reputation and skill system based on mz-skills. Contribute to Coffeelot/cw-rep development by creating an account on GitHub.

maiden spade
#

my bad, I thought this was the cw-rep section

sour fog
#

what file to you actually add the exports in?

quaint grove
sour fog
#

say i got a weed planting script for 4 different seeds, what if i wanted rep/levels to be able to plant certain ones

#

i know i would used the lock content behind a particular level but would i add exports to the rep or the weed planting script?