Garry's Mod Wiki

Garry's Mod Wiki

  SANDBOX:PlayerSpawnedProp( Player ply, string model, Entity entity )

Description

Called when a player has successfully spawned a prop from the Q menu.

Arguments

1 Player ply
The player who spawned a prop.
2 string model
Path to the model of the prop the player is attempting to spawn.
3 Entity entity
The entity that was spawned.

Example

Turns the spawned prop green.

function GM:PlayerSpawnedProp(ply, model, ent) ent:SetColor(Color(0, 255, 0)) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...