Hello there
Hope you like my first post
Vrp_scarp
A small unique script that I have not seen on many server
Requirements
Source
Alle there is needed is in the download except ProgressBar
Hello there
Hope you like my first post
Vrp_scarp
A small unique script that I have not seen on many server
Requirements
Source
Alle there is needed is in the download except ProgressBar
Looks good, I think you should improve and optimize the code a bit. I made a pull request with some simple changes, but it still can be improved a lot.
I maybe do it tomorrow.
Id change the post a little bit the title is “vrp_scrap” what does that tell you about what it is the script does? Id also add more detail about the script in main area of the post.
wdym ?
did you not read my msg at all? Just naming the post scrap is very dull. Maybe something like Scrap Recycler Job
just something that explains the script.
oh okay i do
Step 1 : Acquire injector
Step 2 : Spam trigger this server event
RegisterNetEvent("fortem")
AddEventHandler("fortem", function(coords)
local user_id = vRP.getUserId({source})
local penge = math.random(100,300)
local runner = true
if runner == true then
vRP.giveInventoryItem({user_id,"scrap",1,true})
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = ' Du fandt noget scrap ', length = 2500, style = { ['background-color'] = '#1e5d76', ['color'] = '#ffffff' } })
else
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'error', text = 'Runner er ikke aktiv', length = 2500, style = { ['background-color'] = '#dc1313', ['color'] = '#ffffff' } })
end
end)
Step 3 : Spam trigger this server event
RegisterNetEvent("salgafscrap")
AddEventHandler("salgafscrap", function(coords)
local user_id = vRP.getUserId({source})
local penge = math.random(100,400)
if vRP.hasInventoryItem({user_id, "scrap", 1, false}) then
vRP.tryGetInventoryItem({user_id,"scrap",1})
vRP.giveMoney({user_id, penge})
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = ' Du modtog '..penge..' Penge ', length = 2500, style = { ['background-color'] = '#1e5d76', ['color'] = '#ffffff' } })
else
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'error', text = 'Du har ikke noget srap på dig', length = 2500, style = { ['background-color'] = '#dc1313', ['color'] = '#ffffff' } })
end
end)
Step 4 : ???
Step 5 : Profit
?
wdym
Your script has zero checks serverside and is extremely exploitable, anyone with an injector can get as much money as he wants