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.
Signature.
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.
(\__/) <- Put this bunny in your sig and help him to rule the world!
(='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
(")_(") Expression Gate 2 Wiki Help us update the wiki! Together we can make it more up to date than the SVN! ...
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 04: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 01:40 AM.
Hurr
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
Hurr
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?
PewPew (New GCombat) | SVN Tutorial | EGP v3
MY SVN LINK:Code:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
Thanks for clicking, everyone!
http://www.minerwars.com/?aid=927
But if I get even more clicks, I get the full game, so keep at it!
Bookmarks