[Release] Safe cracking minigame

Watch TimothyDexter_Convenience_Store_Robbery-Safe_Cracking | Streamable

The repository contains:

  • README
    • General Usage
  • Safecracking.cs
    • Source code to run the safe cracking minigame.

Please let me know if you have any questions.

Disclaimer:

To utilize these file(s) you will need to strip project methods (mostly logging) and compile a .dll to use a resource on your server. Otherwise, you are best served using the source code to derive your own implementation in the language of your choice.

22 Likes

sweet script dude is there anyway to get this in with esx holdup

1 Like

or is there away to edit this so police get alert

This is a C# class that you will need to, as described, compile yourself. If you want to add extra functionality, you can add it in the class.

If only it would work!

Nice work, however you sure this isn’t stolen?

using FamilyRP.Roleplay.Client.Classes.Jobs.Police;
using FamilyRP.Roleplay.Client.Classes.Player;
using FamilyRP.Roleplay.Enums.Police;
using FamilyRP.Roleplay.Helpers;
using FamilyRP.Roleplay.SharedClasses;

namespace FamilyRP.Roleplay.Client.Classes.Crime.Robberies

No, timothy_dexter is a FamilyRP dev.

It works, just not out of the box. You need a little brain to compile this.

2 Likes

Like d0p3t said, Timothy is a dev with us. This is his amazing code.

So if I understand this correctly simply compiling the .cs file to a .dll wont work, there are additional steps to take before compiling it?

To utilize these file(s) you will need to strip project methods (mostly logging) and compile a .dll to use a resource on your server.

So yes, you’ll have to remove the FamilyRP specific references and logging, and fix the missing pieces

Videos are 403.
…

Yes, I am sure that it isn’t stolen. I am an active developer on the team as Dustin and others have said. Thank you for the heads up, I will remove future references back to that project to avoid confusion in the future.

1 Like

Funny, I was just about to create something like this today :grin:

Just a she I have to learn C# first to be able to modify this to my need

Well, if you want it bad (as I do), just make esx_holdup trigger after pressing the very same button which activate cracking minigame. And delete some values, so the robbery price isn’t doubled.

Hi, @timothy_dexter,

is there a way how to make it longer? Seems to be very easy to “crack it” :slight_smile:

Is there same value I should change? Could you point me there?

How are you doing this? I have been trying but I dont get C# lol

That looks really nice, great animations and actually opening the safe itself :ok_hand:

2 Likes

If you want to make it longer just initialize the safe with a longer combination.

See line 777 of the source to adjust the actual difficulty.

1 Like

I’m using ESX and I want it to make it like that: When I start the cracking or when I destroys the cash register the game send an alert to the police officers. And I want to make it like that: The Safe cracking be only functionally when there are 3 police officers on the server ?

Do you think you could show us an example of implementation for a different script based on Lua?