toolty Posted October 22, 2022 Posted October 22, 2022 Does anyone have this script? I have already seen a lot but I do not understand where they get it) 1
Xabi Posted October 22, 2022 Posted October 22, 2022 It's more than easy to implement it by yourself, there's no need to "get it from somewhere".
Kopra Posted October 22, 2022 Posted October 22, 2022 (edited) What do you mean where do they get it, you either make it yourself or you pay someone to do the job for you, there isn't public resource like this for RAGEMP that I know of. This script in total with server and clientside code has max 100 lines. EDIT: @Xabiwas faster 😴 Edited October 22, 2022 by Kopra fast duck
WeldyJR Posted November 3, 2022 Posted November 3, 2022 Is more graphic than coding, if you start build that 'script' let me know on my discord, I can help you. Discord : WeldyJR#0001
Dezinated Posted December 28, 2022 Posted December 28, 2022 I created this script and it isn't too hard to make. I basically just check if the player is aiming at a NPC that works at the store and then start/end the robbery based on that let pedType = ped.getVariable("pedType"); if (pedType == "storeWorker") { if (ped.handle == mp.game.player.getEntityIsFreeAimingAt()) { mp.events.callRemote("startStoreRobbery", ped); robbing = true; } } And then on the server side I create a Set per store/worker to hold all of the players robbing it. The code looks something similar to this robbers = new Set(); mp.events.add('startStoreRobbery', (player, ped) => { if (ped.getVariable("pedType") != "storeWorker" || robbers.has(player)) { return; } robbers.add(player); }); I started by making a system for only a single player to rob the store first and then extended it to multiple players 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now