If it could only be made so you can right-click one or more props/entities and then assign values to them instead of it being fixed on the RP money, Shame I don't know a thing about Lua...
Not to bash phil, but now that i just noticed this, you broke a rule of inclusion...
This relies on RP gamemode to function.Cannot commit anything which supplies or relies on a DLL or another mod. Not all hosts wan't dll's running on their systems, and SVN doesn't always give a choice. We don't need broken addons either, should the host decide not to install a prerequisite.
The reason why it's not allowed is that gmod is just too damn finicky. Everything should either rely on itself, or rely on wiremod, that way we can prevent as few conflicts as possible, period.
"You can only tie the record for flying low."
If it could only be made so you can right-click one or more props/entities and then assign values to them instead of it being fixed on the RP money, Shame I don't know a thing about Lua...
RFID kinda does what you are talking about.
(\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
(='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
(")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."
Ah, sorry about that Anticept. I will remove it if you prefer...
...edit: Agreed, and done.
Update UWSVN to remove.
Here's the addon:
http://garrysmod.org/downloads/?a=view&id=62975
Last edited by philxyz; 02-18-2009 at 05:08 PM.
I know that this was awhile ago, but the newest update for darkrp broke this reader. Anyone know of a possible fix?
Working on it.
Edit:
Cant upload it to garrysmod.org couse it keeps telling me its not a .zip. Anyways, anyone is free to upload it for me.
Last edited by Donkie; 01-31-2010 at 02:40 AM.
Get out. Seriously, do it.
Hmm, do you mean the E2functions for it? Google cant find anything else than that. I shall try fix em.
That should work for you.Code:e2function string entity:shipmentContents() if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end return this.dt.contents end e2function number entity:shipmentAmount() if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end return this.dt.count end e2function number entity:moneyAmount() if (!validEntity(this)) then return -1 end if this:GetClass()=="spawned_money" then return this.Amount else return -1 end end
Get out. Seriously, do it.
I've already made RP E2 functions
Yours look similar...Code:AddCSLuaFile("darkrpfunctions.lua") e2function string entity:shipmentContents() if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end return this:GetNWString("contents") end e2function number entity:shipmentAmount() if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end return this:GetNWInt("count") end e2function number entity:moneyAmount() if (!validEntity(this)) then return -1 end if (this:GetTable().MoneyBag) then return this:GetTable().Amount else return -1 end end
Edit: Oh wait the latest DarkRP update broke this way of doing it so you took my E2 functions and edited them a little so that they work? Is that it?
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
Bookmarks