Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script Rainmad Train Heist (ESX to QBCore Converted)

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
Doesn't have the images for a grinder and bag you need so you have to add that yourself other than that works good on latest bcore build
 

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
Also doesn't payout when delivering gold, def needs more work
 
Last edited:

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
itemName = 'goldbar', -- gold item name check if you have this in your shared.lua or change it if you want :)
Hmm I've already got gold bars in shared.lua still doesn't payout after cutscene of them taking case.
They take the gold bars at the drop off
but don't pay out.
 
Last edited:

iamfr0st

Gold Elite
Joined
May 25, 2021
Messages
256
Reaction score
996
Points
306
Hmm I've already got gold bars in shared.lua still doesn't payout after cutscene of them taking case.
They take the gold bars at the drop off
but don't pay out.
on line 96 (if you hadn't edited anything yet) replace the line with this

player.Functions.AddMoney('cash', Config['TrainHeist']['reward']['sellPrice'] * count, 'trainheist')

:)
 

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
on line 96 (if you hadn't edited anything yet) replace the line with this

player.Functions.AddMoney('cash', Config['TrainHeist']['reward']['sellPrice'] * count, 'trainheist')

:)
* count, 'trainheist') was the issue,
thank you so much for your help!:)
 

iamfr0st

Gold Elite
Joined
May 25, 2021
Messages
256
Reaction score
996
Points
306
* count, 'trainheist') was the issue,
thank you so much for your help!:)
replace line 92 - 100 with this in server.lua

change the variable count to cnt

if player then
local cnt = player.Functions.GetItemByName(Config['TrainHeist']['reward']['itemName']).amount
if cnt > 0 then
player.Functions.RemoveItem(Config['TrainHeist']['reward']['itemName'], cnt)
player.Functions.AddMoney('cash', Config['TrainHeist']['reward']['sellPrice'] * cnt, 'trainheist')
discordLog(player.PlayerData.name .. ' - ', ' Gain $' .. math.floor(Config['TrainHeist']['reward']['sellPrice'] * cnt) .. ' on the Train Heist Buyer!')
TriggerClientEvent('QBCore:Notify', src, Strings['total_money'] .. ' $' .. Config['TrainHeist']['reward']['sellPrice'] * cnt, "error")
end
end

:)
 

PornoStar

Silver Elite
Joined
Feb 2, 2022
Messages
97
Reaction score
23
Points
166
Location
FR
Why can't I see the train? Is it because it's old QBCore? Any solution?
 

Blackdove77

Member
Joined
Apr 11, 2022
Messages
8
Reaction score
0
Points
156
Location
Toronto
Installed on fresh QBCore, worked flawlessly. Didn't even need the above mentioned change so I'm assuming it's been fixed in the provided download.
 

Weapons117

Member
Joined
May 28, 2022
Messages
3
Reaction score
0
Points
156
Location
USA
still have the issues of "you need to add items to server database" after adding items to qb-core/shared.items.lua any ideas?
 

tiltedboy

Member
Joined
Jul 6, 2022
Messages
4
Reaction score
7
Points
156
Location
bg
hello heist work but train not spawn do you know why ? pls ty
 

JackFoley

Member
Joined
Nov 6, 2021
Messages
8
Reaction score
0
Points
156
Location
UK
Everything bar the containers and lock are not spawning in for some reason?
 
Top