IsValidPickup

From Onset Developer Wiki
IsValidPickup

Type: Function
Context: Server
Introduced: v1.0

Description

Check if the specified pickup is valid or not.

Syntax

IsValidPickup(pickup)

Parameters

  • pickup
    The pickup identifier.

Return Value

  • Returns true on success.

Example

function DestroyPickup(pickup)
	if IsValidPickup(pickup) then
		DestroyPickup(pickup)
	end
end

See also