electrocas.blogg.se

Darkrp gmod how to salute
Darkrp gmod how to salute









IPad 3, iPad 4, iPad Air, iPad iPad, iPad Mini 2, iPad Mini 3, iPad Mini 4, 9.7" iPad Pro: 2048x1536, 1536x2048 IPhone 12 Pro Max, iPhone 13 Pro Max, iPhone 14 Plus: 1284x2778 IPhone Xs Max, iPhone 11 Pro Max: 1242x2688 IPhone X, iPhone Xs, iPhone 11 Pro: 1125x2436 IPhone 6 plus, iPhone 6s plus, iPhone 7 plus, iPhone 8 plus: 1242x2208 IPhone 6, iPhone 6s, iPhone 7, iPhone 8: 750x1334 IPhone 5, iPhone 5s, iPhone 5c, iPhone SE: 640x1136 IPhone: iPhone 2G, iPhone 3G, iPhone 3GS: 320x480 In this script, we add a chat command that creates cash from nothing.MacBook Pro 13.3" Retina, MacBook Air 13" Retina, MacBook Air 13.3"(2020, M1): 2560x1600 Dual monitor:

darkrp gmod how to salute

Otherwise, all players will see the chatcommand and arguments in their chat boxes! When using DarkRP chat commands, you must return a empty string. Trace.endpos = trace.start + ply:GetAimVector ( ) * 85Īnd finally, we create the money using the trace information:ĭarkRPCreateMoneyBag (tr.HitPos, amount ) Next, we create a trace object of where the playing is looking at. Ply:ChatPrint ( "You are not authorized to use this chat command!" ) return end

darkrp gmod how to salute

Notify (ply, 1, 4, string.format (LANGUAGE.invalid_x, "argument", "" ) ) return "" end if ply:IsSuperAdmin ( ) then Local amount = math.floor ( tonumber (args ) ) if amount <= 1 then Next, we check if the value they are trying to create is lower than 1, or if the player that is trying to create cash, is not a superadmin. Local function CreateCash (ply, args ) if args = "" then return "" end if not tonumber (args ) then return "" end local amount = math.floor ( tonumber (args ) ) if amount

darkrp gmod how to salute

It should work just the same, but the work wont get lost at updates.Īdd the following code to the bottom of a: You could also paste this in a new lua file in gamemodes/modules. In this tutorial we will be using the default DarkRP a file!

darkrp gmod how to salute

I will be showing you how to add a new chat command that creates money from nothing! Welcome to the tutorial, in this tutorial.











Darkrp gmod how to salute