
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@infernus/e-selection
Advanced tools
A wrapper of the popular SA-MP eSelection library for samp-node.
A wrapper of the popular SA-MP eSelection library for samp-node.
pnpm add @infernus/core @infernus/e-selection
import { type Player, PlayerEvent } from "@infernus/core";
import { type IModelData, ModelSelectionMenu } from "@infernus/e-selection";
PlayerEvent.onSpawn(({ player, next }) => {
showSkinModelMenu(player)
return next()
})
async function showSkinModelMenu(player: Player) {
// create a list to populate with models.
// add skin IDs 0, 1, 29 and 60 with "cool people only" text above skin ID 29.
const skins: IModelData[] = [
{ modelId: 0 },
{ modelId: 1 },
{ modelId: 29, modelText: 'Cool people only' },
{ modelId: 60 },
].concat(Array.from({ length: 15 }).map((_, id): IModelData => {
return { modelId: id, rotX: Math.random() * 5 }
}))
try {
// use await_arr and set the response array to the model selection menu result
const skin = await new ModelSelectionMenu({
player,
models: skins,
headerText: 'Skins',
}).show()
// make sure the player actually clicked on a model and not the close button
if (skin) {
// assign the player the skin of their choosing
player.setSkin(skin.modelId)
}
}
catch (err) {
player.sendClientMessage(-1, JSON.stringify(err))
}
}
FAQs
A wrapper of the popular SA-MP eSelection library for samp-node.
The npm package @infernus/e-selection receives a total of 3 weekly downloads. As such, @infernus/e-selection popularity was classified as not popular.
We found that @infernus/e-selection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.