addEventHandler("onPlayerInteriorChange", getRootElement( ),
function( a, b, toDimension, toInterior)
if toDimension then
triggerEvent("frames:loadInteriorTextures", source, toDimension) -- Adams
setElementDimension(source, toDimension)
end
if toInterior then
setElementInterior(source, toInterior)
end
local vehicle = getPedOccupiedVehicle ( source )
if not vehicle then
end
fadeCamera ( source, false, 0, 0, 0, 0 )
fadeCamera ( source, true, 1, 0, 0, 0 )
setElementFrozen(source, false)
setElementAlpha(source, 255)
interiorTimer[source] = false
end
)
and
function switchGroundSnow(toggle)
if getResourceState ( getResourceFromName( "shader_snow_ground" ) ) == "running" then
triggerClientEvent( thePlayer, "switchGoundSnow", thePlayer, toggle)
end
end
Warnings:
1. Bad argument @ 'getPedOccupiedVehicle' [Expected ped at argument 1, got root]
2. Bad argument @ 'getResourceState' [Expected resource-data at argument 1, got boolean]