![darkrp gamemode code darkrp gamemode code](https://images.shockbyte.com/knowledgebase/2021-09-12_kI8U1Nnsvd.png)
So the purpose of this thread is to ask you guys if you would actually be interested in playing this gamemode and give suggestions of what you would like to see a feedback on the development process.
#Darkrp gamemode code mod
I want to make a full GMod varient of the mod, complete with a Chernarus map! Secondly, lots of people play GMod and, even if they didn't, this is something I'm interested in doing as I play Garry's Mod on a regular basis and I've always wanted to code a gamemode and this means I don't really have to be creative "There's already a DayZ gamemode for GMod"įirst of all, the current DayZ gamemode is poorly coded, poorly optimised, and not very popular. I still want to code a gamemode to test and improve my LUA skills, so I've decided to make a DayZ gamemode. ",ĭescription = "The player that receives the money.I recently started coding a role playing gamemode for Garry's Mod, but didn't like doing it because I'm not creative enough to come up with original ideas. ",ĭescription = "The player that gives the money. definePrivilegedChatCommand( "addmoney ", "DarkRP_SetMoney ", ccAddMoney)ĭescription = "Called when a player gives another player money. getPhrase( "could_not_find ", args))ĭarkRP. You may be thinking one of two things: 'Theres already a DayZ gamemode for GMod' or 'GMod is shit, nobody will play' First of all, the current DayZ gamemode is poorly coded, poorly optimised, and not very popular. formatMoney(target: getDarkRPVar( "money ")), " "))ĭarkRP. I still want to code a gamemode to test and improve my LUA skills, so Ive decided to make a DayZ gamemode. getPhrase( "x_set_your_money ", ply: EntIndex() = 0 and "Console " or ply: Nick(), DarkRP. getPhrase( "you_gave ", target: Nick(), DarkRP. definePrivilegedChatCommand( "setmoney ", "DarkRP_SetMoney ", ccSetMoney)ĭarkRP. getPhrase( "you_set_x_money ", target: Nick(), DarkRP. Call( "playerWalletChanged ", GAMEMODE, target, amount - target: getDarkRPVar( "money "), target: getDarkRPVar( "money ")) or amountĭarkRP. getPhrase( "could_not_find ", tostring(args)))Īmount = hook. defineChatCommand( "check ", CreateCheque, 0.3) - for those of you who can't spell defineChatCommand( "cheque ", CreateCheque, 0.3)ĭarkRP. Call( "playerDroppedCheque ", nil, ply, recipient, min_amount, Cheque)ĭarkRP. If IsValid(ply) and IsValid(recipient) thenĭarkRP. If ply: customEntityLimitReached(chequeTable) thenĭarkRP. defineChatCommand( "moneydrop ", DropMoney, 0.3) defineChatCommand( "dropmoney ", DropMoney, 0.3)ĭarkRP. Call( "playerDroppedMoney ", nil, ply, amount, moneybag)ĭarkRP. Ply: DoAnimationEvent(ACT_GMOD_GESTURE_ITEM_DROP)
![darkrp gamemode code darkrp gamemode code](https://topusagames.com/wp-content/uploads/2018/08/garrys-mod-Gamemode-Spawning-In-2-DarkRP.jpg)
defineChatCommand( "give ", GiveMoney, 0.2)ĭarkRP. getPhrase( "you_gave ", ent2: Nick(), DarkRP. getPhrase( "has_given ", ply: Nick(), DarkRP. Call( "playerGaveMoney ", nil, ply, ent2, amount)ĭarkRP. If not IsValid(ent2) or not ent2: IsPlayer() or ent2: GetPos(): DistToSqr(ply: GetPos()) >= 22500 then return end Ply: DoAnimationEvent(ACT_GMOD_GESTURE_ITEM_GIVE)ĭarkRP. getPhrase( "must_be_looking_at ", DarkRP. If not IsValid(ent) or not ent: IsPlayer() or ent: GetPos(): DistToSqr(ply: GetPos()) >= 22500 thenĭarkRP. Partial(SafeRemoveEntity, moneybag))ĭarkRP. getPhrase( "payday_missed "))įunction DarkRP.createMoneyBag( pos, amount) GitHub - FPtje/DarkRP: DarkRP, a non-serious roleplay gamemode for Garrys Mod. Call( "playerGetSalary ", GAMEMODE, self, amount) DarkRP, a non-serious roleplay gamemode for Garrys Mod. Local suppress, message, hookAmount = hook. retrieveSalary( self, function( amount)Īmount = math.floor(amount or GAMEMODE. DarkRPUnInitialized then return endįunction DarkRP.payPlayer( ply1, ply2, amount)ĭarkRP.
![darkrp gamemode code darkrp gamemode code](https://files.facepunch.com/wiki/files/gmod-lsm-example1.jpeg)
Call( "playerWalletChanged ", GAMEMODE, self, amount, self: getDarkRPVar( "money ")) or total Local total = self: getDarkRPVar( "money ") + amount