IsHoodVehicle

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsHoodVehicle

Type: Lua Helper
Context: Server
Introduced: v-

Description

Returns boolean based on if the vehicle has accessible hood.

Syntax

IsHoodVehicle(vehicleid)

Parameters

  • vehicleid
    The vehicle identifier.

Return Value

  • Returns true if vehicle's hood is accesible.

Example Server

function IsHoodVehicle(vehicleid)

	local modelid = GetVehicleModel(vehicleid)
	local array = {1, 2, 3, 4, 5, 6, 7, 8, 19, 24, 25}

	for _, v in ipairs(array) do
		if modelid == v then
			return true
		end
	end
	return false
end

See also

__EDIT_ME__