VRP_Weapons - Give Weapons to Admins!
Hi everyone, I had some time off work, so I thought to bring you guys this simple script. What it does? Well, let’s say you have an admin ticket, one of the players has done a FailRP… he is running, you don’t have any weapons, so basically you press by default “L” and you get 3 weapons to shoot after him. After you finish, just remove them with a command. I know it’s not a big thing, but I’m running short on script ideas, wondering if you guys have any ideas? :)).
Commands:
- Press by default “L” to give yourself the weapons.
- /remove - It’s going to delete the weapons you have received.
Permissions:
- abigail.stergere - For /remove command.
- abigail.arme - For access on pressing “L”.
Previews:
What now?
The resource is in the early state, I am looking forward to update it a lot, I’m hoping to bring new things as soon as possible. For any ideas, bugs, or different script ideas just leave me a PM! Thanks.
4 Likes
Only complaint is that the /remove command is a chat message event handler. Use RegisterCommand. Do you know where you get the message popup? Or did you create the function yourself?
@Whit3XLightning The message popup is a scaleform.
I know it’s a scaleform but i’m just very unfamiliar with anything that has to do with getting text on screen. Notifications, draw text, mission popups, 3d drawtext, new 3d in game video, etc. just wanted to know where they got it from or if they created the function.
@Whit3XLightning Yes. They made a function called ecran(mesaj, subtitlu, ms) to request and draw the scaleforms. In Lua you will find pretty much anything that has to do with drawing in Lua people make seperate functions for it so it doesnt hog up code space and makes it usable elsewhere
FAXES
Unlisted
7
- Deprecated methods . Make sure your release does not contain deprecated methods, such as creating chat commands without the
REGISTER_COMMAND native.
Please update this to have your topic re-listed.
Sorry for that, it should be ok now 
1 Like
Updated to v0.3, added components to the weapons. It’s more “admin style”, made of gold :)) Thank You!
how do i change the keybind
Abigail
12
client.lua -> line 53
if IsControlJustReleased(1, 182) then -> change 182 with that keybind you want.
sorry for the late response, been busy