#Simple prison jobs

1 messages · Page 1 of 1 (latest)

karmic sun
#

Hey there, i made this script where prison inmates can do certain jobs to get some fun items (this was aimed for lifer roleplay) Everything is highly customisable.
(whenever u target the names are still in dutch, i accidentally uploaded my version to Github instead of the english version, everything should be easy to replace)

If u test this script i am open to feedback to become a better scripter.

Github link:

https://github.com/Cry4D4ddy/Stryv_prisonjobs/tree/main

GitHub

This is a script that i made for my prison only roleplay server. This script allows inmates to do certain jobs within the prison. U have the choice of doing 4 jobs ( cleaning, cooking, dishwashing ...

timber plume
#

cool

tame shard
#

Why are we uploading zip files to GitHub

karmic sun
#

Did what thought what was best.

tame shard
#

Probably want to remove your webhook from the config and make this event ⁨giveJobReward⁩ not crazy exploitable

tame shard
#

⁨```lua
RegisterNetEvent('stryv:giveJobReward')
AddEventHandler('stryv:giveJobReward', function(jobKey)
local src = source
local rewards = Config.Jobs[jobKey].rewards
for _, reward in ipairs(rewards) do
if math.random(1, 100) <= reward.chance then
exports.ox_inventory:AddItem(src, reward.item, reward.count)
end
end
end)

karmic sun
#

thank u, ill take a look at it.

ashen flower
karmic sun
#

Just downloaded from there, but never uploading.