April 06, 2020, 11:42 pm

Author Topic: ByB Custom E2 extensions  (Read 23360 times)

Offline Lexi

  • Supporter
  • ByB Rookie
  • *
  • Posts: 79
    • View Profile
ByB Custom E2 extensions
« on: October 11, 2010, 10:27 pm »
ByB has a large number of custom E2 functions.

They are:
--[[ Printer Related ]]--
Number Entity:isPrinter()
Number Entity:printedMoney()
String Entity:printerType()
Number Entity:isBeckiBox()

--[[ Money ]]--
Number Entity:isMoney()
Number Entity:moneyAmount()

--[[ Shipments ]]--
Number Entity:isShipment()
Number Entity:isEmptyShipment()
String Entity:shipmentName()
String Entity:shipmentClass()
String Entity:shipmentModel()
Number Entity:shipmentAmount()
Number Entity:shipmentID()
Number Entity:shipmentCost()
Number Entity:shipmentIndividualCost()
Number Entity:shipmentAvailableSeperately()
Number Entity:shipmentSpawnAmount()
Number Entity:shipmentPricePerUnit()

Number getMaxCustomShipments()
Table getCustomShipmentInfo(Number num)
Table Format:
ret["Found", number] = 1
ret["Name", string] = "MP5"
ret["Model", string] = "models/weapons/w_smg_mp5.mdl"
ret["ClassName", string] = "weapon_mad_mp5"
ret["PricePerShipment", number] = 2600
ret["SpawnAmount", number] = 10
ret["AvailableSeperately", number] = 1
ret["SeperatePrice", number]
= 280

--[[ Spawned Weapons ]]--
Number Entity:isSpawnedWeapon()
String Entity:spawnedWeaponClass()

--[[ Players ]]--
Number Entity:isAuthorisedPersonnel()
Array Entity:getWeapons() -- Returns the weapon ENTITIES aka Entity[5][keypad_cracker]
Array Entity:getWeaponClasses() -- Returns the weapon CLASSNAMES aka "keypad_cracker"
Number Entity:hasGunLicence()
Number Entity:hasKeypadCracker()
Array Entity:getPocketConents() -- Returns an array of ENTITIES
Number Entity:getUserID() -- Returns the players UserID
String Entity:jobName() -- Returns the players Job Name, including custom job titles. Don't rely on it for anything important (for example, E2 door authentication!)

Number Entity:isWarranted() -- Returns the players warrant status, providing you're a cop/swat/mayor.
Number Entity:isWanted() -- As above.
Number Entity:isArrested()
Number Entity:arrestRemaning() -- Gives the remaining jail sentence in seconds, or 0

Number Entity:isTrustedAdmin() -- Works like the normal wire entity:isAdmin() or entity:isSuperAdmin()
Number Entity:isRoot()
String Entity:getRank() -- Returns root/super/trusted/admin/supporter/user depending on the players rank. Returns "(null)" for anything invalid.
Number Entity:isMayorAssistant()
Number Entity:isPoliceDeputy()

--[[ Coolness ]]--
void Entity:setCool(Number cool)
Number Entity:isCool()
Array whoCool() -- Who is on my buddy list, even if they're offline
Array whoCoolNow() -- Who is on the server and on my buddy list
« Last Edit: November 27, 2013, 09:41 pm by StupidWeasel »

Offline Chas

  • Root of all Evil
  • ByB Newbie
  • *
  • Posts: 5
  • Mmmm, show me that booty.
    • View Profile
Re: New Expression 2 Functions
« Reply #1 on: October 11, 2010, 11:41 pm »
HEY RIDE! RIDE! ADD THIS smeg NOW!

Offline Pantho

  • Root of all Evil
  • ByB Champion
  • *
  • Posts: 4370
  • Community Founder
    • View Profile
Re: New Expression 2 Functions
« Reply #2 on: October 11, 2010, 11:59 pm »
HEY RIDE! RIDE! ADD THIS smeg NOW!

Ride doesn't have access ;)

Offline Ride

  • Root of all Evil
  • ByB Champion
  • *
  • Posts: 2678
  • Deon is my mortal enemy
    • View Profile
Re: New Expression 2 Functions
« Reply #3 on: October 12, 2010, 05:57 am »
I have access to your pants.

Offline Stormbringer

  • ByB Newbie
  • *
  • Posts: 0
  • That was lefthanded.
    • View Profile
Re: New Expression 2 Functions
« Reply #4 on: October 12, 2010, 06:54 am »
Don't we all...

Offline Xterminator

  • ByB Novice
  • ***
  • Posts: 234
  • lol
    • View Profile
Re: New Expression 2 Functions
« Reply #5 on: October 12, 2010, 10:45 am »
...
This is a signature. And you are reading it!

Offline Tobba

  • ByB Fanatic
  • ****
  • Posts: 848
    • View Profile
Re: New Expression 2 Functions
« Reply #6 on: October 12, 2010, 12:42 pm »
Copying to RP3 in 3... 2... 1...

Offline Hirviö

  • ByB Novice
  • ***
  • Posts: 255
  • What happend to .... Patch
    • View Profile
Re: New Expression 2 Functions
« Reply #7 on: October 12, 2010, 01:22 pm »
i going to make a auto gunshop where the limit isent just to 1 of the same shipment in one slot instead you can put like Mp5 one time and like spas next time.

Offline Tobba

  • ByB Fanatic
  • ****
  • Posts: 848
    • View Profile
Re: New Expression 2 Functions
« Reply #8 on: October 12, 2010, 01:28 pm »
transfered to RP4 too

Offline Becki

  • ByB Newbie
  • *
  • Posts: 0
  • Becki <3
    • View Profile
Re: New Expression 2 Functions
« Reply #9 on: October 12, 2010, 02:43 pm »
I'll be sure to experiment with this soon enough, i have to write something code wise and i'd rather E2 than nothing! Now, just to think of some ideas...

suck it pantho.

Offline Hitori the Lone Wolf

  • ByB Champion
  • *****
  • Posts: 2270
  • Cake is so utterly delightful.
    • View Profile
    • Used to own a website and several private servers. Closed them all. Took up sorcery.
Re: New Expression 2 Functions
« Reply #10 on: November 15, 2010, 11:45 am »
That HasKeypadCracker function sounds useful. I see a lot of anti-thief alarms and devices :P

I'll have to wait for a Super to go on RP1 when I'm on :D

Offline Moosaphine

  • Root of all Evil
  • ByB Champion
  • *
  • Posts: 3145
  • I am amazing xo
    • View Profile
Re: New Expression 2 Functions
« Reply #11 on: February 17, 2011, 09:51 pm »
/stickyied
Jamie : Oli we are so having a LAN party soon
... wait, Oli can you get up stairs?
*Facepalm*


Offline Hitori the Lone Wolf

  • ByB Champion
  • *****
  • Posts: 2270
  • Cake is so utterly delightful.
    • View Profile
    • Used to own a website and several private servers. Closed them all. Took up sorcery.
Re: New Expression 2 Functions
« Reply #12 on: February 17, 2011, 10:39 pm »
Ty. I hate it when people ask me about custom E2 shizzle...

Offline Slaver77

  • ByB Fanatic
  • ****
  • Posts: 621
  • I can't believe this is still popular
    • View Profile
Re: New Expression 2 Functions
« Reply #13 on: February 18, 2011, 07:48 pm »
Do you like to dream? I like to dream.

Offline Grendpa

  • ByB Champion
  • *****
  • Posts: 1111
  • MSN was so dope in 2006
    • View Profile
Re: New Expression 2 Functions
« Reply #14 on: February 18, 2011, 08:10 pm »
bbc