- #DARKRP GAMEMODE FOR SERVER HOW TO#
- #DARKRP GAMEMODE FOR SERVER INSTALL#
- #DARKRP GAMEMODE FOR SERVER MOD#
getPhrase( "could_not_find ", args))ĭarkRP. formatMoney(target: getDarkRPVar( "money ")), " "))ĭarkRP. 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) 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) Call( "playerGetSalary ", GAMEMODE, self, amount) 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. Call( "playerWalletChanged ", GAMEMODE, self, amount, self: getDarkRPVar( "money ")) or total Local total = self: getDarkRPVar( "money ") + amount
#DARKRP GAMEMODE FOR SERVER MOD#
You shouldn't touch the base DarkRP gamemode unless it's to update it, all modifications to DarkRP otherwise should be done through the DarkRP Modification mod, found on the mod manager.-[[. When your server next restarts, you should now see your gamemode on the top banner set to the gamemode name of your choice!īy doing the change of name this way, we're able to keep DarkRP up to date without much hassle and apply our modifications in the way recommended by the author of DarkRP. Step 10) Finally, go to the bottom right and click Configuration - Commandline Manager and update the startup gamemode to starwarsrp or your desired gamemode. Step 9) After this, navigate to a and do the same as above. Again, once done, please save this and upload it to the server. Step 8) Navigate to garrysmod/gamemodes/starwarsrp/gamemode and edit the cl_a and change GM.Name = "DarkRP" to GM.Name = "StarWarsRP". Once done, please save this and make sure it's uploaded to the server. Step 7) Enter starwarsrp.txt and change darkrp at the top of the file to starwarsrp and DarkRP to StarWarsRP. Step 6) Enter the renamed folder and rename derivedrp.txt to starwarsrp.txt. Because our game servers use Linux, we'll need to enter this in lowercase - so we'd change it to be "starwarsrp". Step 5) Rename the derivedrp folder to be the desired name of the gamemode. Step 4) Once you've extracted all the files to your desktop, please drag the derivedrp folder to your /garrysmod/gamemodes directory on your gameserver using FileZilla or whichever client you're using.
#DARKRP GAMEMODE FOR SERVER INSTALL#
Step 3) If you haven't already, please install the latest version of DarkRP through our Mod Manager. Please note, you shouldn't try editing the base DarkRP folders for this. Once downloaded, please extract all files to your desktop. Step 2) Download DerivedRP (derivedrp.zip) from this link.
#DARKRP GAMEMODE FOR SERVER HOW TO#
If you aren't sure how to do this, please refer to our other knowledge base article found here. Step 1) Login to SFTP for your game server. These steps can apply to every gamemode category however we will be using StarWarsRP for this example. Some gamemodes such as StarWarsRP require you to rename the DarkRP gamemode. StarWarsRP, gamemode, gmod, Garry's Mod, Pterodactyl, rename How to rename DarkRP to another RP game mode e.g StarWarsRP.