• What does this error mean?
    0 replies, posted
So, i'm trying to get this car to spawn on a specific part of the map but it won't work. Here is my code: [CODE]function InitPostEntity() local _v = ents.Create( "prop_vehicle_jeep" ); if ( !IsValid( _v ) ) then error( "Vehicle didn't spawn!" ) _v:SetModel( "models/LoneWolfie/nfs_mustanggt.mdl" ) _v:SetPos( Vector( -72.121811, -562.328186, -83.974075 ) ) _v:SetAngles( Angle( -1.010241, 178.773239, 0.000000 ) ) -- _v:SetSkin( 1 ) -- _v:SetColor( Color( 255, 255, 255, 255 ) ) -- _v:SetBodyGroup( _id, _value ) -- _v:Fire( "TurnOff", "", 0 ) -- TurnOn -- _v:Fire( "HandBrakeOn", "", 0 ) -- HandBrakeOff -- _v:Fire( "Lock", "", 0 ) -- Unlock _v:SetKeyValue( "vehiclescript","scripts/vehicles/LWCars/nfsmustang.txt" ) _v:Spawn() _v:Activate() end hook.Add( "InitPostEntity", "InitPostEntity", InitPostEntity )[/CODE] Any idea why it won't show up?
Sorry, you need to Log In to post a reply to this thread.