• Setting DarkRP Shipments contents
    0 replies, posted
Hello everyone, What I am trying to do is too spawn a shipment then set its contents. This is what I have tried: local shipment = ents.Create( "spawned_shipment" ) shipment:SetPos( Vector( 0, 0, 0 ) shipment:SetCollisionGroup( COLLISION_GROUP_NONE ) shipment:SetModel( shipmentModel ) shipment.contents = shipmentCont shipment.count = shipmentCount shipment:Spawn() But yet I get this error: attempt to index local 'contents' (a nil value) My question is, how do I set its contents?
Sorry, you need to Log In to post a reply to this thread.