not any that i know about, theres definetely ways to cheat it though, unavoidable without more server coding, but this isnt really meant as a serious resource anyway
Do you know any specific? I would like to look into it.
HI i was wondering of how do i change the money ratio for the drift counter, if anyone could help it would be great thanks
I would also like to know how to change how much is payed out
After 2 years the service webpage is not available anymore.
I get errors in my log.
FiveM-Driftcounter error: Could not reach the service 404.
How can I connect my database?
go to driftcounter_c.lua
previous = score
previous = calculateBonus(previous)
total = total+previous
cash = previous/5
Change the number 5. i already change it so yours might be different. so to make u understand. 100k point / 5 = 20k money
since nobody answer how to update database based on drift point. i figured it out myself and i want to be nice to you all. assuming you all use esx, here what i do.
_resource.lua
- add server_script "@mysql-async/lib/MySQL.lua"
driftcounter_s.lua
if ourUser then
MySQL.Sync.execute(“UPDATE user_accounts SET money = @money”, {
ourUser.addMoney(money)})
end
dont forget to set usePayout to true
how i fix
Error parsing script driftcounter_s.lua in resource DriftCounter: driftcounter_s.lua:18: unexpected symbol near ‘<\226>’
Failed to load script driftcounter_s.lua.
__resource.lua (179 Bytes)
driftcounter_c.lua (4.8 KB)
driftcounter_s.lua (4.8 KB)
I want that payout cash go to blackmoney section, can some1 share these script lines with example how it have to look like? + how to remove that info which showing for example +500$ after every drift, i mean showing the money u get or how to change that information position.
then u need to put the code that will update money value in user_accounts table. for second question i dont really understand. dont know why u want to remove +500$ after every drift tho
Thanks for Archives
Hi. Has anyone been able to make this work with vRP? It is not possible to make money work in the vRP.
Is there anyway to make it so if you hit something the points disappear?
aaah stumped on this one no idea how to get it to pay someone for their drift. Tried @aciducen1995 code no luck, i think my database differs from his as my table is just called user and accounts is a collumn with longtext fields. Gunna keep working at it and if it works will share it here but anyone solved this problem recently?
EDIT: Solved it still testing it, not sure if this is the proper way of using these functions as this is my first time changing code but so far works, just replace the body of “payDrift” event with this:
TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)
local message =‘You got ~g~$’…money…’~s~ for that sweet drift!’ TriggerClientEvent(‘esx:showNotification’, source, message)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.addMoney(money)
I need to activate payouts by i cant find anything to change to instead points have a money can help me someone
Hello which money script i need to make payouts work?
how do you change the font’s of these script
