#plugins-dev-chat
1 messages ¡ Page 12 of 1
make your own
flip no!
đ
Riptide is doing it so it matter of time
yea
ye
Yea
guh
you should have named that Scp096TryNotToCryAbility or just smuply TryNotToCryAbility
probably
but idc

ill rename it back to scp096Role when labapi wrappers
same with 079 one
SecretAPI will be denied
guh
No cache? 
nah
i dont need no cache

its only run 60 times a second
so true
theres only a few casts
yk
just a few
i dont agree with it either
but
but
what could go wrong

sry for ping but is there no way better than this?
<NoStdLib>true</NoStdLib>
That's how Unity does it
Oh
Not much better but it's less characters
hi everyone, listen, i want to get into cybersecurity, what do i need to know, and do i need to have a virtual machine?
Yes, because you need to have a way to test viruses etc. and not break your pc
Nah download all the viruses directly to your personal machine
pentesting isnât the only thing in cyber security
coming from a cyber security engineer irl btw
Penning the tests
didnt say that
it is the best place to start imo, lots of knowledge and will open your mind about what it really is
true
pantesting, what is it?
No problem
Can you confirm this is accurate then? (This is a joke please donât kill me)
yeah this is what i walk into in the office every day
Ah, thank you Lumi
i would need a help im making a custom plugin for easter in NWapi(Not LabApi) and i need to remove from list a item that has ItemPickup which was deleted by cleanup and others im using this but its not working correctly
Main.Instance.Eggs.RemoveAll(e => e.egg == null || e.egg.GameObject == null || !e.egg.GameObject);
alternatively is there a way to check if item exist with some Serial?
I wonder, will the fancy log coloring will make a comeback in LabApi?
what happens to item after Clean up? they are destroyed or what bcs for some reason this function makes everything freeze like "item" is game object of the egg which is ItemPickup but for some reason it makes the entire function to lag/frezze after that
var eggs = Main.Instance.Eggs;
List<int> toRemove = new List<int>();
for (int x = eggs.Count - 1; x >= 0; x--)
{
var item = eggs[x];
if (item.item ==null)
{
toRemove.Add(x);
}
}
foreach (var index in toRemove)
{
NetworkServer.Destroy(eggs[index].shell.gameObject);
eggs.RemoveAt(index);
}
someone had an idea why this is so broken?
Make the round start counter not count OW as players
how do I check how long is left on the deadman sequence timer?
check warhead
Just like normal warhead timer
no
not what i mean
the timer until deadman sequence inits
DeadmanSwitch._dmsTime 
DeadmanSwitch._activationTimer
oh
Youuu will however
changed
need to publicize
Its possible its changed name in 14.1 idk xd
đ
im making a pr for exiled
lol
unless you guys add it for next update
done xd
Very scary
Changing private to public
and _a
to A
yeah but you gotta then find every reference of the old variable and change it over
đ?
Is that what you do
Is bro using notepadd
i use rider
Which has the same feature
ive been it for a while
Just rename
It will underline iirc
And then you just agree to rename it
how bruh
i like click the thing
change the name
and then i have to change all references
manually
do i have to like double click or smth?
ctrl + r that shit?
Alt+Enter on rider i think
Right click
Rename
Also if you change the name or the signature by typing you should get a prism icon next to the line number which lets you update references
"Apply name change refactoring" for example
Btw
Double shift also exists
So just type what you want and it'll tell you the shortcut
When one of my friends saw me renaming something he went "wait does Rider have a thing to rename?"
Yeah duh
Even VSC has it, F2
Bro had been manually updating everything since the dawn of time đ
iâve been doing that forever

making somthing strange..
Path finding?
finding path to
Thatâs better than what I was going to say, I was going to say it was minesweeper
Was there any solution for this 
question is there any command for the steamcmd console to reload a plugin etc?
steamcmd has nothing to do with plugins, i'm not sure what you're referring to
Im no dev but you don't use SteamCMD for anything other than installing the server right
correct, installation and updating of only the server itself
LA has plugin stuff
plugins are separate, managed by the server, not by steamcmd
well i rather restart the game fully
cus i dont think it reloads the server / c# asm
i tried to make hot reload work
i failed
but Killers managed it apparently
i tried to load the new assembly into a separate domain and using that, replace the IL of the assembly in the current domain
for some reason the IL was the same all the time
yea uh nvm my brain.exe isn't running rn lol
Future ref: Switched to using OnPlayerJoin even to trigger the init instead of the override
Huh
When OnInstanceCreated is executed, the ReferenceHub still doesn't have all the required user data (since they are not authenticated yet)
So I had to move from OnInstanceCreated to a function call and using OnPlayerJoined event
Makes sense..
Is the snake game on Chaos Keycard handled server-side?
from what i could conclude from the portion of the stream i watched, the key presses are handled by the client and sent to the server to broadcast to others
so you will probably be able to send network messages (or rpcs) to control the snake, though it might not work for the client holding the keycard
it is synced to every client
if you play a game of snake, someone else can see you playing
so data is sent to the server
someone make a plugin that randomly stops you from moving your snake for a single second

it depends on whether there is a call made to the server to see if the move can be made, if not then it wonât be possible probably
I can take a look
It might be the case where client has full control
and just sends data to server whats his status
hey uh. is it possible to use any higher version of .NET? i hate only being able to use C# 8.0
just change the <LangVersion> in the csproj
Visual Studio ignores the change...
huh
yea
did you save and reload the project?
ofc
what did you set the language version to?
13.0
wait let me try
i completly closed VS and reopened it.
(also yea i'm from germany so let me translate: it says: "some function" is not available in C# 9.0 use 10.0 or later)
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
That should give you like the highest one you can get
oh the horrors of the .NET Framework csproj files
i assume you have the .NET 9 SDK installed so that should be working
did in fact not work.
are there any other langversion tags after it?
you mean in the .csproj?
ye
nah its the only one and i added it myself
DId you reload the project?
works for me
did you save it?
yes
have you installed the correct .NET SDK?
when i closed and reopened the file it was still there
wait let me check
And are you using .NET 4.8.X?
dotnet --list-sdks
to use C# 13 you need the .NET 9 SDK
i got the runtime. not the SDK tho. let me install it rq
yeah that's probably the issue
well microsoft and their SDKs are an Pain....
vs installer 
and their biggest IDE apparently takes care of it..?
vs installer doesn't show me the 9 SDK
xd
yea 2022 the latest i got
not sure if that has full .net 9 support xd
just download this

Idk I never used VS to download any SDK
you just saved yourself a lot of time
I didnt even know it was possible
and headaches
same here thats why i was wondering
and it ||doesn't|| work
did you restart VS or your computer 
that doesn't mean VS recognizes it xd
same problem
this -^
tbh before i use Rider or VSC i will completly reinstall VS
yeah
and try again.
.NET 9 is supported from VS 2022 17.12 and onwards
i won't learn another 2 years how to use rider
i just updated VS today...

thats fucking hell....
eatherway thanks for the help even tho it didn't really help lmao
at least you learned some microfost bullcrap lmao
yea
as a last resort, try restarting the computer
already uninstalling VS in tha background rn
Ngl i rather use paincrosoft Simulator 2022 than Rider or Visual Studio Cook
bruh
VSC is fairly decent though with the C# kit or whatever
(and microsoft wants to get everyone to use VSC sooo)
Well tbh i don't HATE vsc but i rather Go through pain
And MAYBE (totally Not) it works after an reinstall
also... yea didn't work eather.... well one last thing exists which i can try. maybe when i create a new project it might work? don't know.
If you have dotnet installed you can create project with console commands
yea i know but i want to use VS IDE
I using vs22
same here
Wants to take the easy way out
Had no issues
Real programmers use the console 
well the other thing is. my PC is from 2011 tbf lol
Real programmers use Linux without GUI only shell
uh. NVIDIA Geforce Now
Oh
Real programmers dont use an operating system. They just communicate directly with the components
real programmers aren't even programmers 
Real programmers dont need components they use random sticks and stones they found laying around 
Real programmers dont need stuff. They just calculate everything in their head
They run SL at 240 FPS 4k in their minds
But are bad in the game eatherway because they have aiming issues just like my PC has mental issues.
Bro in a new project it works just fine ;-;
I HATE VS
delete the .vs folder
Hell no
for c#? bruh
rider for c#
vs for absolutely nothing
Notepad for c#
write your own ide
vim for c# seems interesting
tbh i seen some guys do it
make your own linux distro dedicated to code C#
every time i tried using it, it caused me so much hassle
so
make your own cpu
ik someone who uses it
i only use jetbrains products anyway
you didn't set up the extensions right?
VSC isnt on Linux so i have to use Rider
vsc requires some extensions for it to work
no i installed them all correctly, but nothing was working lol
i use vsc for text edit if cant do it inside the sublime text
when was the last time you did that
also no build button, i need that build button grrrr
year ago
then idk
dotnet build
dotnet shutdown
yeah but then i gotta provide some stuff to that, i prefer a build button that does everything for me lol
Dotnet âuninstall
provide what..?
me when dotnet build
no ?
its just
dotnet build
thats it
ye
me when i run my ,bat script
nothing else needed
.sh is better
what happens when youâre using a different whatâs it called
comma bat
like debug or release
how do i exit
-c Release
-c Release
yeah thatâs bs for me lol
:q! 
just turn off your pc
command
XD
:Q
release is default
that won't save you đ
I think its faster typing that than having to press that tiny arrow next to the build button
iirc
Literally
I restarted my pc and my vm 5000000 times
I even uninstalled it
and made new
Ctrl+Shift+Q in my case 
It installed itself BACK
me when Ctrl B
no, i find clicking 2 very easy to click buttons faster
and launched neovim again
To switch to a release build
Damn we got a problem here. AI will kill us all
wdym I always build as release
no need for debug
all my code is supposed to work 
Me when linear equation counts as AI
release for QA
oh yeah and in rider, there is a dedicated nuget window, in vsc, you have to copy and paste a command into the console
(playerbase)
grrrr
I always thought debug built faster or smth
"supposed"
And easier to clean up. Idk
VS has that too
cuz there aren't optimizations
i know, but theyâre talking about VSC
Exactly
not VS
vsc is a text editor
I dont need those optimisations when im just testing something for myself
When i post it , ill use release build
i only use debug and release in C++ project
but then you need glasses cuz you can't see sharp
water
vsc is a text editor if it doesnât have extensions bruh
which was the point of it?
that's why you have extensions
I only use VSCode for like
html, css and stuff
which is quite unvoluntary anyways
i like editors that work with what i want out of the box, thatâs why i use jetbrains products lol
i use webstorm for that, also free
yknow what else also free
fair
We did AI in python for like last 2 months
and like bruh what the heeeel
6GBs of packages?
Python moment
better than node
True
built-in JS intellisense: 
when you realize that pip is case-sensitive
vsc also good for json simplify or minify
this is why typescript is so popular now, because to get intellisense, classes need to be used which isnât common in js lol
Me after 2 days of figuring out how to train AI on GPU
(you have to install very specific package of specific version for your specific CUDA version for your OS)
well that requires a build step which is unnecessary in some cases
but i find it ridiculous that there's absolutely 0 intellisense if it doesn't know the type of something
Yeah like

me when i use natirual stupidity VS AI
epic rap battles of history
I mean like training 1 epoch for 2,5 mins vs 20 secs
1 epoch?
epoch
Neural network
like unix time unit?
training
Each time a dataset passes through an algorithm, it is said to have completed an epoch. Therefore, Epoch, in machine learning, refers to the one entire passing of training data through the algorithm.
hmm
Its pretty cool tho
it can detect holes in a paper target
It can cook
And the only reason to use python is for AI
Or automatic manual tasks
Cuz its easier than bash tbh
x3rt has entered the facility chat
except it requires people to install python
I would take a bash/shell script over a python one any day
Hmmm true
i use batch script mostly but sometimes where i need to read file content it is easier in python
for example removing comments from the files
me when the default encoding us windowows-23425gvrf4322344
welp
sed?
back to Unity
what
sed
i use win not linux
back to implementing stuff into labapi 
Well yea
oh I misread this as bash 
git bash would work better in this case
wide subsystem for linux
ye i have that
also i forgot to tell you that but this worked lol. IT MAKES NO SENSE BUT IDFC

vs cache breaking moment
yea.
i could kick the balls
frrom the microsoft employee who made this crap SO HARD rn
and yet again it doesn't work. ngl i'm switching to notepad at this point
Also uh anyone got information about a LabApi fĂźll Release integrated to the Game? I really wanna use it for my productive Server but. No User will Install the Beta Just to Join.
the labapi will be "mainstream" when 14.1 releases
Oh didn't think it would happen THAT fast tbh but i'm happy
14.1 When
~1 month probably
hi guys, is there a position where you need to check servers according to VSR rules?
Within Northwood? Yes, that's one of the tasks Safety and Compliance Specialists Handle
does this mean 1507 is still in the game lol
Holiday features are disabled, but yes they do technically exist
oh thats interesting
This is an internal position though
hey uh. how do i add an effect? anyone got a small advise?
EnableEffect<Scp207>(1)
Oh thanks
And how do i get the strengh of an already used effect? (like you already have 1 cola drunken and now want to stack the next cola on top) or does the effect strengh automaticly stack?
GetEffect
if you want to stack it you need to do that urself
k
Got disconnected today when LabAPI tried to print out a nullref error
[2025-04-19 23:17:27.137 +02:00] [STDOUT] Disconnecting connId=2 to prevent exploits from an Exception in MessageHandler: NullReferenceException Object reference not set to an instance of an object
[2025-04-19 23:17:27.138 +02:00] [STDOUT] at LabApi.Events.EventManager.FormatErrorMessage (System.Delegate eventHandler, System.Exception exception) [0x00043] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT] at LabApi.Events.EventManager.InvokeEvent[TEventArgs] (LabApi.Events.LabEventHandler`1[TEventArgs] eventHandler, TEventArgs args) [0x00028] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT] at LabApi.Events.Handlers.PlayerEvents.OnChangedItem (LabApi.Events.Arguments.PlayerEvents.PlayerChangedItemEventArgs ev) [0x00000] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT] at InventorySystem.Inventory.ServerSelectItem (System.UInt16 itemSerial) [0x00114] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT] at InventorySystem.Inventory.UserCode_CmdSelectItem__UInt16 (System.UInt16 itemSerial) [0x00014] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at InventorySystem.Inventory.InvokeUserCode_CmdSelectItem__UInt16 (Mirror.NetworkBehaviour obj, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00022] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at Mirror.RemoteCalls.RemoteProcedureCalls.Invoke (System.UInt16 functionHash, Mirror.RemoteCalls.RemoteCallType remoteCallType, Mirror.NetworkReader reader, Mirror.NetworkBehaviour component, Mirror.NetworkConnectionToClient senderConnection) [0x00019] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at Mirror.NetworkIdentity.HandleRemoteCall (System.Byte componentIndex, System.UInt16 functionHash, Mirror.RemoteCalls.RemoteCallType remoteCallType, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00065] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at Mirror.NetworkServer.OnCommandMessage (Mirror.NetworkConnectionToClient conn, Mirror.CommandMessage msg, System.Int32 channelId) [0x00085] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at (wrapper delegate-invoke) System.Action`3[Mirror.NetworkConnectionToClient,Mirror.CommandMessage,System.Int32].invoke_void_T1_T2_T3(Mirror.NetworkConnectionToClient,Mirror.CommandMessage,int)
[2025-04-19 23:17:27.139 +02:00] [STDOUT] at Mirror.NetworkMessages+<>c__DisplayClass8_0`2[T,C].<WrapHandler>b__0 (Mirror.NetworkConnection conn, Mirror.NetworkReader reader, System.Int32 channelId) [0x0007a] in <8b9df2430f094ce4be93093eb23b1eed>:0
(To recreate this, try to use any property of NewItem in PlayerChangedItemEventArgs when the item is null)
just dont logger.error
its fixed next release but rn it causes null ref in events
oh
That was LabAPI doing it though
as I tried to use a null object
yeahh
its fixed next release
but
they made it break in events

tbf if it hasn't happened, I would probably postpone fixing the bug 
So it kinda helped
Yeahhhh fixed in next update
Dont throw errors in static event delegates
david why would you break this đ
I didnt write that in a first place
Doesn't look static đ
damn
ah
it is... minimap paint
Whatâs the performance impact of that
not very high i assume
Hey uh anyone knows how i get the player object who used an command from the sender arg?
(sender as PlayerCommandSender).Hub
Not sure about the property name for the player command sender
but you cast it to this
K thanks
Or there should be extension method or something like that?
Sec
Aha
@fresh zenith
Player.Get(sender)
There is overload for it
Oh thanks that helps
you might want to use the TryGet version or check for null since the sender might not be a player e.g. a command run from the server console
Well for that i just defy the Client console as only way to use the command
Also the command may Look weird due to me being new in LabApi coding
So don't expect performant code
its always about your intent, its just a best practice to always catch and respond with unlikely but possible problems
i doubt that will be a problem lol
I made an if statement to stop every arg the User trys to input
Also. Yes now it works :) i'm so happy rn
small question why does the remoteadminconsole make the rich text attributes like <align=left> dissappear? (i know it makes them invisible but is there a way to change that?)
There is RT button on the right
NExt to Send
oh true forgot about that----- yea like i said my brain is just not braining 90% of the time lol#
Is there anyway for a plugin to specifically tag a player without affecting other plugins. Iâve noticed a field for players like player.tags or smth but im not sure what would happen if i tried to use it
Rn my alternative is creating a public list and just adding and removing players from that list as needed
Well... make your list/hashset of tagged people?
Or you got the data store thingy
I was just thinking if there was a better way because what exactly is that âstring Player.Tagâ thing anyway
is there not documentation?
i dont think there is a Tag property on player?
You sure you looking at LabAPI?
Im not on my machine rn, but ill check when i get home
Also so is just adding a player to a temporary list for all of a single millisecond before the next event triggers really the most efficient way of doing this?
nothing wrong with doing it like that, if you really want to you could look into writing the code without having to use multiple events to get what you want done
Dont think thatâs possible in my case though since ill need a delay anyway
From what I see... your trying to do cuffed enemy escape for MTF/Chaos
You can do that using OnPlayerEscaping (or something like that) event
There is custom escape scenario
yeah
just set the new role to be smth different lol
or, because it wonât happen, you can just set the role
Yea that is what im doing. The idea is i want civilians to get extra items for escaping, but not militants. This is more of a bandaid solution since OnPlayerRoleChange.oldRole still returns the wrong value
Though im using the same idea for a complete different part of the code which i havenât committed to the repo yet
if using escaping, use Player.Role instead of OldRole or whatever
Im using PlayerChangeRole since im manually setting the militantâs role
i know this is an really stupid question but my brain isn't braining rn so i ask LabApi-Pedia:
For what is the "base.OnPlayerEscaping(ev);" important? like for what use case should i use it?
not needed
so its just something VS automaticly adds without any need=?
base would be required if you want the superclass' method to execute
in this case, CustomEventsHandler has an empty method body for everything so you can delete the base call
^^
well thanks for the fast response
now i'm a lot smarter tbh means i can remove it and don't need to wonder why i would ever need it
i wonder what clarifies for the "framework" label in #1336031121699377213
does it have to be an "entire" plugin framework?
at david 
yea i think it means smth like exiled
at beryl then
then what scale would library be
Wouldnt that be library uhhh
Well
Library is still used within labapi
Framework would have seperate classes
Seperate to labapi
so that tag is as of now
For Exiled xd
idk if it counts as a framework
sob
not that much tbh
except i like to overthink
Thats fineee
what would you put in Tools tho

mmmmm
Generate these
hey uh what roles specify "Team.OtherAlive"?
like which role from an player would it be?
smth like custom roles or tutorial?
probably tutorial
thx
also does the Player.DisarmedBy Property give me the name of the player who disarmed the player? (probably yes but my brain isn't awake if so.)
i think it returns a player object not the name
Ye it either null or the disarmer player
^
also how do i add comments to an config?
Use the Description attribute (from System.ComponentModel)
thanks
Is there anything i can call to get the current roundtime?
Or any property?,
Nvm found it
Is there a way to reload the Plugin? So that the config gets reloaded?
currently you have to restart the server
or write a command to reload your configs
MER is more feature-rich, there also exists BMOD for it if you wanna work with blender
sloc is a bit more scarce in features but that also means less things to learn
finally there's MapForge if you find asset bundles easier
Do you have an example for that?
unfortunately no
Well thanks tho. Will be looking into it
just create a static property for your plugin instance and access that
then call LoadConfig
sudo sr
thanks, I am trying MER 

Michal is calling...
Scale is already enough to confuse me
maybe my unity edit skill
đ
when there are multiple parent-child objects, I seem to be unable to directly change the size of the entire structure
It changed, but it went back to 1 1 1 when I exported it
F6
Hmm, this is a bit hard to explain
sloc avoids this by retaining the object structure and hacking mirror
ctrl
for snap to grid
well
not to part to my knowledge
actually
hold ctrl+shift and that might position the object's pivot on the surface of another
eager to use SLMEOCR

hey uh how can i check if a keycard is allowed to open a certain door?
just spawn by hand
Door.permission?
well yea but how do i get the permission from the keycard?
from the item
Same? kcitem.Permission
Or KeycardPermission
Maybe you need to access the base too
well the item.permission doesn't exist
What's the item type
well don't kill me for my code
if (item is KeycardItem keycard)
also use ev.Door.HasFlag
no ==
will not work unless it ONLY has 1 permission
keycard.Base.Permission
Use HasFlagFast if it exists
i dont think it does but idk
Try BMOD curently it lacks teleport and animation which you probably as a beginner won't use
Also it has faster compiling time
Advanced(actually helpful) tools for SCP: SL plugin MER (Map Editor Reborn) - MujisongPlay/AdvancedMERtools
question is there an event that gets triggered before the door checks if the player has the keycard in the hand? because i made an "wireless keycard" plugin (i know it will be useless ones 14.1 comes out but still i HATE testing without wireless keycards) and the door says it didn't work and plays the sound but after about 0.5 sec it says OK and plays the other sound. that is anoying
anyone got an idea how to fix that?
IsAllow = true?
rn my code looks like that
that exists? lol
i do thinks it's exist in NWAPI yeah
nah IsAllow doesn't exist
but not sure i never used NWAPI always used Exiled
well sadly not in LabApi tho
that LabAPI
yea ik
missign feature then
IsDenied ?
ev.IsAllowed
your IDE does not help you
are you sure you not writing it inside a notepad?
well i tryed
yea if my brain doesn't exist my IDE can't exist
i'm sorry man.
will do next time (if i don't forget lmao)
i infact did not forget
đ
Primitive has too many problems
self-glowing primitives display different effects in different areas when alpha = 1
when alpha < 1, primitives are once again obscured by the skybox (img from MER dc)
the workaround for this is to create a slightly smaller alpha = 1 primitive inside the emissive primitive
but, the network sync optimization for primitives seems not very good for dynamic transform objects
it will put some pressure on the server
is there a way to play songs/sounds via the LabApi?
I think there are some sound toy?
well tbf i looked if i could find any file that comes close to that but i didn't find anything
if anyone has an idea how to add that i would appreciate it
speakertoy
you can use https://github.com/Killers0992/AudioPlayerApi also
thanks
small question. if the player has eaten an SCP330 candy how do i get the type of the candy? if i use ItemType. it doesn't show me the veriants of the candy
i might have found smth. testing rq
The event has candy type argument
Did you maybe got an example?
Getting the candy seems quite complicated if you've never done it, since Candies are not items in the traditional sense.
If using the PlayerUsedItemEvent, you should do the following:
- Cast
ev.Item.BasetoScp330Bagand store it. (If you're sure it is a candy being used) - Get your desired
CandyKindIDby doingbag.Candies[bag.SelectedCandyId](wherebagis your storedScp330Baginstance)
he wants something like>
PlayerUsed330Event
that helps a lot.
and yea. it really is quite complicated but also simple if i look at it now
thx a lot
Oh I can't read nvm
if(ev.Item.Base is Scp330Bag bag) bag.Candies[bag.SelectedCandyId];
this gives me the next candy from the bag. yes it works but i still need to figure out how i get the used candy. not the next from the used candy.
might got the solution tho hold on a minute
EatenCandy event exists no?
Or eaten330
Idk
@unique crane make event!!
weird only "Used" item gets triggered not "using" item. it would make sense if the player is using the item "Scp330" bag
also hi david
Haiii
rn code looks like this. the first event doesn't get triggered which is weird imo due to the player interacting with an item but well idk. the second event gives me the candy from the position where the old one was located.
It is possible it hasn't been added to the candy item
I can look at it today
thanks. will be working on smth else in the meantime. (atleast now i got confirmation its not 100% my brains fault it doesn't work lol. Doesn't mean that my brain isn't also the reason why it doesn't work tho lol)
why do you do this btw
Is there a way to spawn primitiveobject only for one specific client and to attach that primitiveobject to arms view model?
you can spawn for a specific client but you cant attach anything to the viewmodel
Ig its faster than typing ev.Player every single time?
well it helps me to look better into the code and not to use everytime i need the player: "ev.Player.[stuff]" it gives me the feeling that the code looks cleaner.
and also looks clean
Yea
Doesn't the first event have to return true because its a -ing function
Like it can be cancelled
Someone killed my PC due to me using: "Item item = ev.item;" lol
Or is that not how LabAPI works
There is an Event which gets triggered when it cancels
Damn also i wonder is there a way to spawn particles or HUD effect idk how it works and what is it exactly the effect of the SCP-049 doctor call or scp-1344 particles on players heads
i think thats a nwapi thing
labapi events do not have a return
So how do you cancel something
There is an Event which gets triggered
not aware of anything like that
ev.IsAllowed = false;
Oh
no return true or false here because its made properly
oh 049 is the cardiac arrest effect?
I think he means like 1344 to See players behind an wall or stuff
yeah
Damn
player effects, like you would see in the RA you can enable in plugins
Bro killed NWapi in one sentence
Damn
damn
david are you ignoring the nullables?
mini map...
mini map?
also is there smth new to that message? or still the same?
Btw will plugins break after LabAPI release?
Sad
All references to the api will be gone
What about patches to non API references?
Thats why you have time right now to update Pluigns
all plugins need to load
which uses the pluginapi
(or ig exiled if thats what ur using on plugins)
Cant guarantee they will work since some parts of the game has been rewritten
Or slightly edited
I NEED 14.1 DEDICATED SERVER FILE
Once 14.1 enters it's public beta phase (if there even will be, we don't know) probably everyone will be able to host a server but until then only official servers receive the build
I'm interested in the internal logic of version 14.1
about snake game
for minimap
Just wait for a few days
Hi chat
Hello
I've opened a server, but I don't know what to install to be able to modify the map.
Your options are MER, sloc and MapForge
MER is goated
me when 106 breathing is in root namespace
womp womp
Add -> C# Script
Moment
Stupid unity

Thats not the only one
no
đ ?!?
I need LabApi 0.5.0 for MER, and I canât find it
ProjectMER
instead of MapEditorReborn now
It will break million of system
thats fine
only works with exiled version 9.0.1
no ?
ProjectMER is labapi
MER works on latest exiled
use the non exiled version then
this is the point at which everything blows up
@harsh thorn Is lab-api support included by default in the early-server-build?
yes
14.1 removes the nwapi and adds the labapi
fab, which means at some point labapi will be the default on the main branch?
when 14.1 becomes live on the main branch the labapi will be on the main branch yes
god bless labapi
so many things i wish was in labapi
like the player.Scale we were promised
đ
or the firearm wrapper
đ
we've been cheated
Hello Everyone
Can the Lab API control how many sergeants the nine-tailed fox refreshes at a time?
gotta love
vs code > rider
nuh uh
yuh huh
ur mean
fight me
me when text editor over ide
rider is a glorified notepad
vsc*
rider actually has everything ootb
vsc is just notepad with extensions
Yes!
It can
Or if you want, you can select them manually during WaveSpawning event
rider is fancy bloatware
vsc is legit bloat 
at least vsc doesn't eat ram like crazy đ
sure, but dont say rider is bloat when vsc is legit built on bloat
Fighting words
OK,Thank you
still runs smoother!!
vsc has always ran like shit for me
Not on my PC lol
skill issue
bro is pulling random cards from the deck now
legit glazing a text editor and calling rider stuff it just isn't đ
vscode is easier and more lightweight, ez win no diff
vscode is easier? in what way?
i find rider easier 100000x
lol
everything works ootb
and tbh i dont care about lightweight at all
I'm still using VS2022
i dont need to care about performance of an IDE, but VSC is shocking
it's a pain in the ass for me to setup every time i reinstall my pc
whereas rider/webstorm works ootb
i legit made my work pay for a webstorm license for everyone because everyone was getting stuck on installing the right extensions for vsc, whereas everything worked in webstorm ootb
jetbrains just know what to do
microsoft should stick to making ts and c#, not text editors
vscode is 100% better for coding across multiple languages
sure, but if jetbrains does an ide for what i want, im using that
because it has the best support out of anything
I Like this guy
And also the best pricing for stuff that is normaly free lol
bro needs different apps just to switch languages
atleast it keeps my projects in check
And needs Like 2 extra SSD's lol
Yet-
Fr use notepad and cmd
Use vim
No
Being old means being smart.
no it does not đ
it's called standards đ
the most dumbest people in the world are the oldest to me
atleast, that's what ive noticed
ive seen some really clever oldies tho which did some really clever stuff
in other words, not all old people are dumb
Child of the young you never experienced the First Komodore that existed so you shouldn't Talk that rash about things you May never see nor know ever again
what?
In short terms: don't speak Bad about every old person out there
We saw many things that you won't
peak
So uh. Is there any Update for this?
I havent dumped the thing yet
Also
If I make a custom Wave, does the client will show the type and things for it?
(probably nope since it is server only but worth a shot checking it)
lost media
it will be read only 
Hi, I have a question: Is there any way to use 14.1 custom key cards in code?
yes
Yes. I added methods to give you the custom keycards with all possible parameters
Which then returns the Keycard item reference
oh thats not merged in yet bruh
gaming
40 commits
oh boy i love to resolve

has the hcz checkpoint bug been fixed yet?
new toys?
custom maps boutta be awesome
Yes
You can spawn InteractibleToy (E click / hold)
079 camera
And Capybara :D
I love spawning RoomReaderWriters
Well now I donât need to run raycasts through server specific settings keybindings.
That was my idea too ngl
Like instead of flamingos
you get capybaras
âThe Cabybara serverâ Everyone is a cabybara.
?
how get build tool
Well, yeh








