31 lines
812 B
Markdown
31 lines
812 B
Markdown
|
# qb-gocart
|
||
|
Simple karting tickets system for QBCore
|
||
|
|
||
|
# Preivew:
|
||
|
- https://youtu.be/tAa4WKA4v1w
|
||
|
-
|
||
|

|
||
|
|
||
|
|
||
|
# Installation:
|
||
|
|
||
|
Add to qb-core/server/events.lua:
|
||
|
```
|
||
|
RegisterNetEvent('QBCore:Server:RemoveMoney', function(acount, amount)
|
||
|
local src = source
|
||
|
local Player = QBCore.Functions.GetPlayer(src)
|
||
|
if not Player then return end
|
||
|
Player.Functions.RemoveMoney(acount, amount)
|
||
|
end)
|
||
|
|
||
|
RegisterNetEvent('QBCore:Server:AddMoney', function(acount, amount)
|
||
|
local src = source
|
||
|
local Player = QBCore.Functions.GetPlayer(src)
|
||
|
if not Player then return end
|
||
|
Player.Functions.AddMoney(acount, amount)
|
||
|
end)
|
||
|
```
|
||
|
|
||
|
# Map credits link:
|
||
|
- https://forum.cfx.re/t/map-karting-track-race/2270220
|